]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/uninhabited/privately-uninhabited-dead-code.rs
1 // build-pass (FIXME(62277): could be check-pass?)
3 #![deny(unused_variables)]
10 value
: Bar
, // "privately" uninhabited
13 pub fn give_foo() -> Foo { panic!() }
19 println
!("Hello, {}", a
); // ok: we can't tell that this code is dead