]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / auto-traits / typeck-default-trait-impl-constituent-types.stderr
1 error[E0277]: the trait bound `MyS2: MyTrait` is not satisfied
2   --> $DIR/typeck-default-trait-impl-constituent-types.rs:21:18
3    |
4 LL |     is_mytrait::<MyS2>();
5    |                  ^^^^ the trait `MyTrait` is not implemented for `MyS2`
6    |
7 note: required by a bound in `is_mytrait`
8   --> $DIR/typeck-default-trait-impl-constituent-types.rs:16:18
9    |
10 LL | fn is_mytrait<T: MyTrait>() {}
11    |                  ^^^^^^^ required by this bound in `is_mytrait`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.