blob: 975bfea9425aab66b3b50009a68c5188ec0dc373 [file] [log] [blame]
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
--> $DIR/cast-angle-bracket-precedence.rs:8: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/cast-angle-bracket-precedence.rs:9: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/cast-angle-bracket-precedence.rs:11: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/cast-angle-bracket-precedence.rs:16: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/cast-angle-bracket-precedence.rs:25: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/cast-angle-bracket-precedence.rs:28: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