1 2 3 4 5 6 7 8 9 10 11 12 13 14
fn repro() { trait Foo { type Bar; } #[allow(dead_code)] struct Baz<T: Foo> { field: T::Bar, } } fn main() { repro(); }