1 error[E0277]: the trait bound `MyS2: MyTrait` is not satisfied
2 --> $DIR/typeck-default-trait-impl-constituent-types.rs:21:18
4 LL | is_mytrait::<MyS2>();
5 | ^^^^ the trait `MyTrait` is not implemented for `MyS2`
7 note: required by a bound in `is_mytrait`
8 --> $DIR/typeck-default-trait-impl-constituent-types.rs:16:18
10 LL | fn is_mytrait<T: MyTrait>() {}
11 | ^^^^^^^ required by this bound in `is_mytrait`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0277`.