summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22644.stderr
blob: 45027afa7b62b0b04c318df78150ee1d635308a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
  --> $DIR/issue-22644.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/issue-22644.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/issue-22644.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/issue-22644.rs:13:31
   |
LL |     println!("{}{}", a: usize < long_name, long_name);
   |                               ^ -------------------- interpreted as generic arguments
   |                               |
   |                               not interpreted as comparison
   |
help: try comparing the cast value
   |
LL |     println!("{}{}", (a: usize) < long_name, long_name);
   |                      +        +

error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
  --> $DIR/issue-22644.rs:15:29
   |
LL |     println!("{}", a: usize < 4);
   |                             ^ - interpreted as generic arguments
   |                             |
   |                             not interpreted as comparison
   |
help: try comparing the cast value
   |
LL |     println!("{}", (a: usize) < 4);
   |                    +        +

error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
  --> $DIR/issue-22644.rs:20: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:29: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:32: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: expected type, found `4`
  --> $DIR/issue-22644.rs:34:28
   |
LL |     println!("{}", a: &mut 4);
   |                     -      ^ expected type
   |                     |
   |                     tried to parse a type due to this type ascription
   |
   = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
   = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error: aborting due to 9 previous errors