fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied 2 --> $DIR/issue-39802-show-5-trait-impls.rs:24:21 3 | 4LL | fn bar(&self){} 5 | ------------- required by `Foo::bar` 6... 7LL | Foo::<i32>::bar(&1i8); 8 | ^^^^ the trait `Foo<i32>` is not implemented for `i8` 9 | 10 = help: the following implementations were found: 11 <i8 as Foo<bool>> 12 <i8 as Foo<u16>> 13 <i8 as Foo<u32>> 14 <i8 as Foo<u64>> 15 <i8 as Foo<u8>> 16 17error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied 18 --> $DIR/issue-39802-show-5-trait-impls.rs:25:21 19 | 20LL | fn bar(&self){} 21 | ------------- required by `Foo::bar` 22... 23LL | Foo::<i32>::bar(&1u8); 24 | ^^^^ the trait `Foo<i32>` is not implemented for `u8` 25 | 26 = help: the following implementations were found: 27 <u8 as Foo<bool>> 28 <u8 as Foo<u16>> 29 <u8 as Foo<u32>> 30 <u8 as Foo<u64>> 31 32error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied 33 --> $DIR/issue-39802-show-5-trait-impls.rs:26:21 34 | 35LL | fn bar(&self){} 36 | ------------- required by `Foo::bar` 37... 38LL | Foo::<i32>::bar(&true); 39 | ^^^^^ the trait `Foo<i32>` is not implemented for `bool` 40 | 41 = help: the following implementations were found: 42 <bool as Foo<bool>> 43 <bool as Foo<i8>> 44 <bool as Foo<u16>> 45 <bool as Foo<u32>> 46 and 2 others 47 48error: aborting due to 3 previous errors 49 50For more information about this error, try `rustc --explain E0277`.