]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / did_you_mean / issue-39802-show-5-trait-impls.stderr
1 error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied
2   --> $DIR/issue-39802-show-5-trait-impls.rs:24:21
3    |
4 LL |     Foo::<i32>::bar(&1i8);
5    |     --------------- ^^^^ the trait `Foo<i32>` is not implemented for `i8`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the following implementations were found:
10              <i8 as Foo<bool>>
11              <i8 as Foo<u16>>
12              <i8 as Foo<u32>>
13              <i8 as Foo<u64>>
14              <i8 as Foo<u8>>
15
16 error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
17   --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
18    |
19 LL |     Foo::<i32>::bar(&1u8);
20    |     --------------- ^^^^ the trait `Foo<i32>` is not implemented for `u8`
21    |     |
22    |     required by a bound introduced by this call
23    |
24    = help: the following implementations were found:
25              <u8 as Foo<bool>>
26              <u8 as Foo<u16>>
27              <u8 as Foo<u32>>
28              <u8 as Foo<u64>>
29
30 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
31   --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
32    |
33 LL |     Foo::<i32>::bar(&true);
34    |     --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
35    |     |
36    |     required by a bound introduced by this call
37    |
38    = help: the following implementations were found:
39              <bool as Foo<bool>>
40              <bool as Foo<i8>>
41              <bool as Foo<u16>>
42              <bool as Foo<u32>>
43            and 2 others
44
45 error: aborting due to 3 previous errors
46
47 For more information about this error, try `rustc --explain E0277`.