2019-08-21 16:30:11 -07:00
|
|
|
#![deny(unused)]
|
|
|
|
|
2022-06-10 12:14:24 +09:00
|
|
|
struct F; //~ ERROR struct `F` is never constructed
|
|
|
|
struct B; //~ ERROR struct `B` is never constructed
|
2019-08-21 16:30:11 -07:00
|
|
|
|
2022-06-10 12:14:24 +09:00
|
|
|
enum E {
|
|
|
|
//~^ ERROR enum `E` is never used
|
2019-08-21 16:30:11 -07:00
|
|
|
Foo(F),
|
|
|
|
Bar(B),
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|