trait Trait {} struct Foo { x: T, } enum Bar { ABar(isize), BBar(T), CBar(usize), } impl Foo { //~^ ERROR `T: Trait` is not satisfied fn uhoh() {} } struct Baz { a: Foo, //~ ERROR E0277 } enum Boo { Quux(Bar), //~ ERROR E0277 } struct Badness { b: Foo, //~ ERROR E0277 } enum MoreBadness { EvenMoreBadness(Bar), //~ ERROR E0277 } struct TupleLike( Foo, //~ ERROR E0277 ); enum Enum { DictionaryLike { field: Bar }, //~ ERROR E0277 } fn main() { }