]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-84973-negative.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-84973-negative.stderr
CommitLineData
17df50a5
XL
1error[E0277]: the trait bound `i32: Tr` is not satisfied
2 --> $DIR/issue-84973-negative.rs:10:9
3 |
17df50a5 4LL | 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
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`
17df50a5
XL
15
16error[E0277]: the trait bound `f32: Tr` is not satisfied
17 --> $DIR/issue-84973-negative.rs:11:9
18 |
17df50a5 19LL | 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 |
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`
c295e0f8
XL
29help: consider borrowing here
30 |
31LL | bar(&b);
32 | +
17df50a5
XL
33
34error: aborting due to 2 previous errors
35
36For more information about this error, try `rustc --explain E0277`.