granite-rust/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.8 KiB
Text
Raw Normal View History

error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied
--> $DIR/issue-39802-show-5-trait-impls.rs:24:21
|
2019-03-09 15:03:44 +03:00
LL | Foo::<i32>::bar(&1i8);
| --------------- ^^^^ the trait `Foo<i32>` is not implemented for `i8`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Foo<B>`:
2024-06-07 14:54:42 +00:00
`i8` implements `Foo<bool>`
`i8` implements `Foo<u16>`
`i8` implements `Foo<u32>`
`i8` implements `Foo<u64>`
`i8` implements `Foo<u8>`
error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
--> $DIR/issue-39802-show-5-trait-impls.rs:25:21
|
2019-03-09 15:03:44 +03:00
LL | Foo::<i32>::bar(&1u8);
| --------------- ^^^^ the trait `Foo<i32>` is not implemented for `u8`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Foo<B>`:
2024-06-07 14:54:42 +00:00
`u8` implements `Foo<bool>`
`u8` implements `Foo<u16>`
`u8` implements `Foo<u32>`
`u8` implements `Foo<u64>`
error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
--> $DIR/issue-39802-show-5-trait-impls.rs:26:21
|
2019-03-09 15:03:44 +03:00
LL | Foo::<i32>::bar(&true);
| --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Foo<B>`:
2024-06-07 14:54:42 +00:00
`bool` implements `Foo<bool>`
`bool` implements `Foo<i8>`
`bool` implements `Foo<u16>`
`bool` implements `Foo<u32>`
`bool` implements `Foo<u64>`
`bool` implements `Foo<u8>`
error: aborting due to 3 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0277`.