rust/src/test/ui/issue-22644.stderr

92 lines
3.9 KiB
Plaintext
Raw Normal View History

error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
--> $DIR/issue-22644.rs:16:31
|
2018-02-22 18:42:32 -06:00
LL | println!("{}", a as usize < long_name); //~ ERROR `<` is interpreted as a start of generic
| ---------- ^ --------- interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the casted value: `(a as usize)`
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
--> $DIR/issue-22644.rs:17:33
|
2018-02-22 18:42:32 -06:00
LL | println!("{}{}", a as usize < long_name, long_name);
| ---------- ^ -------------------- interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the casted value: `(a as usize)`
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:19:31
|
2018-02-22 18:42:32 -06:00
LL | println!("{}", a as usize < 4); //~ ERROR `<` is interpreted as a start of generic
| ---------- ^ - interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the casted value: `(a as usize)`
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:21:31
|
2018-02-22 18:42:32 -06:00
LL | println!("{}{}", a: usize < long_name, long_name);
| -------- ^ -------------------- interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the casted value: `(a: usize)`
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:23:29
|
2018-02-22 18:42:32 -06:00
LL | println!("{}", a: usize < 4); //~ ERROR `<` is interpreted as a start of generic
| -------- ^ - interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the casted value: `(a: usize)`
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:28:20
|
2018-02-22 18:42:32 -06:00
LL | < //~ ERROR `<` is interpreted as a start of generic
| ^ not interpreted as comparison
2018-02-22 18:42:32 -06:00
LL | 4);
| - interpreted as generic arguments
help: try comparing the casted value
|
2017-11-20 06:13:27 -06:00
25 | println!("{}", (a
26 | as
27 | usize)
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:37:20
|
2018-02-22 18:42:32 -06:00
LL | < //~ ERROR `<` is interpreted as a start of generic
| ^ not interpreted as comparison
2018-02-22 18:42:32 -06:00
LL | 5);
| - interpreted as generic arguments
help: try comparing the casted value
|
2017-11-20 06:13:27 -06:00
30 | println!("{}", (a
31 |
32 |
2017-11-20 06:13:27 -06:00
33 | as
34 |
35 |
...
error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:40:31
|
2018-02-22 18:42:32 -06:00
LL | println!("{}", a as usize << long_name); //~ ERROR `<` is interpreted as a start of generic
| ---------- ^^ --------- interpreted as generic arguments
| | |
| | not interpreted as shift
| help: try shifting the casted value: `(a as usize)`
error: expected type, found `4`
2017-11-20 06:13:27 -06:00
--> $DIR/issue-22644.rs:42:28
|
2018-02-22 18:42:32 -06:00
LL | println!("{}", a: &mut 4); //~ ERROR expected type, found `4`
| ^ expecting a type here because of type ascription