| 1 |
pub struct Foo(i8); |
| 2 |
struct Bar(pub i8); // { dg-warning "struct is never constructed: .Bar." } |
| 3 |
pub struct Baz { |
| 4 |
a: i32, // { dg-warning "field is never read: .a." } |
| 5 |
pub b: i32, |
| 6 |
} |
| 7 |
|
| 8 |
pub fn foo() {} |
| 9 |
fn bar() {} // { dg-warning "function is never used: .bar." } |