]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84973-negative.stderr
Add warning when whitespace is not skipped after an escaped newline.
[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 | fn bar<T: Tr>(t: T) {}
5    |           -- required by this bound in `bar`
6 ...
7 LL |     bar(a);
8    |         ^ the trait `Tr` is not implemented for `i32`
9
10 error[E0277]: the trait bound `f32: Tr` is not satisfied
11   --> $DIR/issue-84973-negative.rs:11:9
12    |
13 LL | fn bar<T: Tr>(t: T) {}
14    |           -- required by this bound in `bar`
15 ...
16 LL |     bar(b);
17    |         ^
18    |         |
19    |         expected an implementor of trait `Tr`
20    |         help: consider borrowing here: `&b`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0277`.