]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr
Auto merge of #107197 - aliemjay:patch-2, r=jackh726
[rust.git] / tests / ui / auto-traits / typeck-default-trait-impl-negation.stderr
1 error[E0277]: the trait bound `ThisImplsUnsafeTrait: MyTrait` is not satisfied
2   --> $DIR/typeck-default-trait-impl-negation.rs:22:19
3    |
4 LL |     is_my_trait::<ThisImplsUnsafeTrait>();
5    |                   ^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `ThisImplsUnsafeTrait`
6    |
7 note: required by a bound in `is_my_trait`
8   --> $DIR/typeck-default-trait-impl-negation.rs:17:19
9    |
10 LL | fn is_my_trait<T: MyTrait>() {}
11    |                   ^^^^^^^ required by this bound in `is_my_trait`
12
13 error[E0277]: the trait bound `ThisImplsTrait: MyUnsafeTrait` is not satisfied
14   --> $DIR/typeck-default-trait-impl-negation.rs:25:26
15    |
16 LL |     is_my_unsafe_trait::<ThisImplsTrait>();
17    |                          ^^^^^^^^^^^^^^ the trait `MyUnsafeTrait` is not implemented for `ThisImplsTrait`
18    |
19 note: required by a bound in `is_my_unsafe_trait`
20   --> $DIR/typeck-default-trait-impl-negation.rs:18:26
21    |
22 LL | fn is_my_unsafe_trait<T: MyUnsafeTrait>() {}
23    |                          ^^^^^^^^^^^^^ required by this bound in `is_my_unsafe_trait`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.