]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-22644.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / issue-22644.stderr
1 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2   --> $DIR/issue-22644.rs:16:33
3    |
4 16 |     println!("{}", a as usize < b);
5    |                               - ^ interpreted as generic argument
6    |                               |
7    |                               not interpreted as comparison
8    |
9 help: if you want to compare the casted value then write:
10    |     println!("{}", (a as usize) < b);
11
12 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
13   --> $DIR/issue-22644.rs:17:33
14    |
15 17 |     println!("{}", a as usize < 4);
16    |                               - ^ interpreted as generic argument
17    |                               |
18    |                               not interpreted as comparison
19    |
20 help: if you want to compare the casted value then write:
21    |     println!("{}", (a as usize) < 4);
22
23 error: aborting due to 2 previous errors
24