]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-84973-negative.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-84973-negative.stderr
1 error[E0277]: the trait bound `i32: Tr` is not satisfied
2 --> $DIR/issue-84973-negative.rs:10:9
3 |
4 LL | 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 following implementations were found:
10 <&f32 as Tr>
11 note: required by a bound in `bar`
12 --> $DIR/issue-84973-negative.rs:5:11
13 |
14 LL | fn bar<T: Tr>(t: T) {}
15 | ^^ required by this bound in `bar`
16
17 error[E0277]: the trait bound `f32: Tr` is not satisfied
18 --> $DIR/issue-84973-negative.rs:11:9
19 |
20 LL | bar(b);
21 | --- ^ expected an implementor of trait `Tr`
22 | |
23 | required by a bound introduced by this call
24 |
25 note: required by a bound in `bar`
26 --> $DIR/issue-84973-negative.rs:5:11
27 |
28 LL | fn bar<T: Tr>(t: T) {}
29 | ^^ required by this bound in `bar`
30 help: consider borrowing here
31 |
32 LL | bar(&b);
33 | +
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0277`.