]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/issue-84973-negative.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 trait `Tr` is implemented for `&f32`
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`
15
16 error[E0277]: the trait bound `f32: Tr` is not satisfied
17 --> $DIR/issue-84973-negative.rs:11:9
18 |
19 LL | bar(b);
20 | --- ^ the trait `Tr` is not implemented for `f32`
21 | |
22 | required by a bound introduced by this call
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`
29 help: consider borrowing here
30 |
31 LL | bar(&b);
32 | +
33
34 error: aborting due to 2 previous errors
35
36 For more information about this error, try `rustc --explain E0277`.