1 error[E0277]: the trait bound `i32: Tr` is not satisfied
2 --> $DIR/issue-84973-negative.rs:10:9
5 | --- ^ the trait `Tr` is not implemented for `i32`
7 | required by a bound introduced by this call
9 = help: the trait `Tr` is implemented for `&f32`
10 note: required by a bound in `bar`
11 --> $DIR/issue-84973-negative.rs:5:11
13 LL | fn bar<T: Tr>(t: T) {}
14 | ^^ required by this bound in `bar`
16 error[E0277]: the trait bound `f32: Tr` is not satisfied
17 --> $DIR/issue-84973-negative.rs:11:9
20 | --- ^ expected an implementor of trait `Tr`
22 | required by a bound introduced by this call
24 note: required by a bound in `bar`
25 --> $DIR/issue-84973-negative.rs:5:11
27 LL | fn bar<T: Tr>(t: T) {}
28 | ^^ required by this bound in `bar`
29 help: consider borrowing here
34 error: aborting due to 2 previous errors
36 For more information about this error, try `rustc --explain E0277`.