mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
c63b6a437e
My type ascription Oh rip it out Ah If you think we live too much then You can sacrifice diagnostics Don't mix your garbage Into my syntax So many weird hacks keep diagnostics alive Yet I don't even step outside So many bad diagnostics keep tyasc alive Yet tyasc doesn't even bother to survive!
87 lines
2.8 KiB
Plaintext
87 lines
2.8 KiB
Plaintext
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
--> $DIR/issue-22644.rs:6:31
|
|
|
|
|
LL | println!("{}", a as usize < long_name);
|
|
| ^ --------- interpreted as generic arguments
|
|
| |
|
|
| not interpreted as comparison
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
LL | println!("{}", (a as usize) < long_name);
|
|
| + +
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
--> $DIR/issue-22644.rs:7:33
|
|
|
|
|
LL | println!("{}{}", a as usize < long_name, long_name);
|
|
| ^ -------------------- interpreted as generic arguments
|
|
| |
|
|
| not interpreted as comparison
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
LL | println!("{}{}", (a as usize) < long_name, long_name);
|
|
| + +
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
--> $DIR/issue-22644.rs:9:31
|
|
|
|
|
LL | println!("{}", a as usize < 4);
|
|
| ^ - interpreted as generic arguments
|
|
| |
|
|
| not interpreted as comparison
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
LL | println!("{}", (a as usize) < 4);
|
|
| + +
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
--> $DIR/issue-22644.rs:14:20
|
|
|
|
|
LL | <
|
|
| ^ not interpreted as comparison
|
|
LL | 4);
|
|
| - interpreted as generic arguments
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
LL ~ println!("{}", (a
|
|
LL | as
|
|
LL ~ usize)
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
--> $DIR/issue-22644.rs:23:20
|
|
|
|
|
LL | <
|
|
| ^ not interpreted as comparison
|
|
LL | 5);
|
|
| - interpreted as generic arguments
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
LL ~ println!("{}", (a
|
|
LL |
|
|
...
|
|
LL |
|
|
LL ~ usize)
|
|
|
|
|
|
|
error: `<<` is interpreted as a start of generic arguments for `usize`, not a shift
|
|
--> $DIR/issue-22644.rs:26:31
|
|
|
|
|
LL | println!("{}", a as usize << long_name);
|
|
| ^^ --------- interpreted as generic arguments
|
|
| |
|
|
| not interpreted as shift
|
|
|
|
|
help: try shifting the cast value
|
|
|
|
|
LL | println!("{}", (a as usize) << long_name);
|
|
| + +
|
|
|
|
error: aborting due to 6 previous errors
|
|
|