fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB31 linesraw
1error[E0277]: the trait bound `for<'de> EmptyBis<'de>: Foo<'_>` is not satisfied
2  --> $DIR/issue-96223.rs:49:17
3   |
4LL |     icey_bounds(&p);
5   |     ----------- ^^ the trait `for<'de> Foo<'_>` is not implemented for `EmptyBis<'de>`
6   |     |
7   |     required by a bound introduced by this call
8   |
9   = help: the trait `Foo<'de>` is implemented for `Baz<T>`
10note: required for `Baz<EmptyBis<'de>>` to implement `for<'de> Foo<'de>`
11  --> $DIR/issue-96223.rs:16:14
12   |
13LL | impl<'de, T> Foo<'de> for Baz<T> where T: Foo<'de> {}
14   |              ^^^^^^^^     ^^^^^^          -------- unsatisfied trait bound introduced here
15note: required for `Empty` to implement `Dummy<EmptyMarker>`
16  --> $DIR/issue-96223.rs:20:9
17   |
18LL | impl<M> Dummy<M> for Empty
19   |         ^^^^^^^^     ^^^^^
20...
21LL |     for<'de> Baz<<M::Bar as Bar<'de>>::Inner>: Foo<'de>,
22   |                                                -------- unsatisfied trait bound introduced here
23note: required by a bound in `icey_bounds`
24  --> $DIR/issue-96223.rs:45:19
25   |
26LL | fn icey_bounds<D: Dummy<EmptyMarker>>(p: &D) {}
27   |                   ^^^^^^^^^^^^^^^^^^ required by this bound in `icey_bounds`
28
29error: aborting due to previous error
30
31For more information about this error, try `rustc --explain E0277`.