fn repro() { trait Foo { type Bar; } #[allow(dead_code)] struct Baz { field: T::Bar, } } fn main() { repro(); }