]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-negation.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / 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:31:5
3    |
4 LL |     is_my_trait::<ThisImplsUnsafeTrait>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `ThisImplsUnsafeTrait`
6    |
7    = help: the following implementations were found:
8              <ThisImplsUnsafeTrait as MyTrait>
9 note: required by `is_my_trait`
10   --> $DIR/typeck-default-trait-impl-negation.rs:26:1
11    |
12 LL | fn is_my_trait<T: MyTrait>() {}
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error[E0277]: the trait bound `ThisImplsTrait: MyUnsafeTrait` is not satisfied
16   --> $DIR/typeck-default-trait-impl-negation.rs:34:5
17    |
18 LL |     is_my_unsafe_trait::<ThisImplsTrait>();
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `MyUnsafeTrait` is not implemented for `ThisImplsTrait`
20    |
21    = help: the following implementations were found:
22              <ThisImplsTrait as MyUnsafeTrait>
23 note: required by `is_my_unsafe_trait`
24   --> $DIR/typeck-default-trait-impl-negation.rs:27:1
25    |
26 LL | fn is_my_unsafe_trait<T: MyUnsafeTrait>() {}
27    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0277`.