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