fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `i32: Tr` is not satisfied 2 --> $DIR/issue-84973-negative.rs:10:9 3 | 4LL | bar(a); 5 | --- ^ the trait `Tr` is not implemented for `i32` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Tr` is implemented for `&f32` 10note: required by a bound in `bar` 11 --> $DIR/issue-84973-negative.rs:5:11 12 | 13LL | fn bar<T: Tr>(t: T) {} 14 | ^^ required by this bound in `bar` 15 16error[E0277]: the trait bound `f32: Tr` is not satisfied 17 --> $DIR/issue-84973-negative.rs:11:9 18 | 19LL | bar(b); 20 | --- ^ the trait `Tr` is not implemented for `f32` 21 | | 22 | required by a bound introduced by this call 23 | 24note: required by a bound in `bar` 25 --> $DIR/issue-84973-negative.rs:5:11 26 | 27LL | fn bar<T: Tr>(t: T) {} 28 | ^^ required by this bound in `bar` 29help: consider borrowing here 30 | 31LL | bar(&b); 32 | + 33 34error: aborting due to 2 previous errors 35 36For more information about this error, try `rustc --explain E0277`.