fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `u8: Foo` is not satisfied 2 --> $DIR/feature-gate-do_not_recommend.rs:19:11 3 | 4LL | stuff(1u8); 5 | ----- ^^^ the trait `Foo` is not implemented for `u8` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Foo` is implemented for `i32` 10note: required for `u8` to implement `Bar` 11 --> $DIR/feature-gate-do_not_recommend.rs:13:14 12 | 13LL | impl<T: Foo> Bar for T { 14 | --- ^^^ ^ 15 | | 16 | unsatisfied trait bound introduced here 17note: required by a bound in `stuff` 18 --> $DIR/feature-gate-do_not_recommend.rs:16:13 19 | 20LL | fn stuff<T: Bar>(_: T) {} 21 | ^^^ required by this bound in `stuff` 22 23error: aborting due to previous error 24 25For more information about this error, try `rustc --explain E0277`.