]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.rs
6 const FOO
: Foo
= Foo { x: 0 }
;
12 //~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`
19 //~^ WARNING floating-point types cannot be used in patterns
20 //~| WARNING this was previously accepted by the compiler but is being phased out