]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
Test `expect` with `forbid` and fix doc errors (RFC-2383)
[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            and 5 others
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            and 5 others
30
31 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
32   --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
33    |
34 LL |     Foo::<i32>::bar(&true);
35    |     --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
36    |     |
37    |     required by a bound introduced by this call
38    |
39    = help: the following implementations were found:
40              <bool as Foo<bool>>
41              <bool as Foo<i8>>
42              <bool as Foo<u16>>
43              <bool as Foo<u32>>
44            and 2 others
45
46 error: aborting due to 3 previous errors
47
48 For more information about this error, try `rustc --explain E0277`.