(root)/
gcc-13.2.0/
gcc/
testsuite/
rust/
compile/
torture/
generics7.rs
struct Foo<T>(T);

struct Bar {
    a: Foo<i32>,
    b: bool,
// { dg-warning "field is never read" "" { target *-*-* } .-1 }
}

fn main() {
    let a = Foo::<i32>(123);
    let b: Bar = Bar { a: a, b: true };
    let c: i32 = b.a.0;
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}