]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-96223.stderr
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / suggestions / issue-96223.stderr
1 error[E0277]: the trait bound `for<'de> EmptyBis<'de>: Foo<'_>` is not satisfied
2   --> $DIR/issue-96223.rs:49:17
3    |
4 LL |     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>`
10 note: required for `Baz<EmptyBis<'de>>` to implement `for<'de> Foo<'de>`
11   --> $DIR/issue-96223.rs:16:14
12    |
13 LL | impl<'de, T> Foo<'de> for Baz<T> where T: Foo<'de> {}
14    |              ^^^^^^^^     ^^^^^^          -------- unsatisfied trait bound introduced here
15 note: required for `Empty` to implement `Dummy<EmptyMarker>`
16   --> $DIR/issue-96223.rs:20:9
17    |
18 LL | impl<M> Dummy<M> for Empty
19    |         ^^^^^^^^     ^^^^^
20 ...
21 LL |     for<'de> Baz<<M::Bar as Bar<'de>>::Inner>: Foo<'de>,
22    |                                                -------- unsatisfied trait bound introduced here
23 note: required by a bound in `icey_bounds`
24   --> $DIR/issue-96223.rs:45:19
25    |
26 LL | fn icey_bounds<D: Dummy<EmptyMarker>>(p: &D) {}
27    |                   ^^^^^^^^^^^^^^^^^^ required by this bound in `icey_bounds`
28
29 error: aborting due to previous error
30
31 For more information about this error, try `rustc --explain E0277`.