]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-pattern-not-const-evaluable.rs
1 // build-pass (FIXME(62277): could be check-pass?)
3 #[derive(PartialEq, Eq)]
10 struct Pair
<A
, B
>(A
, B
);
12 const BOO
: Pair
<Cake
, Cake
> = Pair(Marmor
, BlackForest
);
13 const FOO
: Cake
= BOO
.1;
15 const fn foo() -> Cake
{
19 const WORKS
: Cake
= Marmor
;
21 const GOO
: Cake
= foo();
25 FOO
=> println
!("hi"),
26 GOO
=> println
!("meh"),
27 WORKS
=> println
!("möp"),