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