summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lexer/lex-bad-numeric-literals.stderr
blob: f05d61603023cbb1c9224dc1a7e42f37c1d1c87e (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:2:5
   |
LL |     0o1.0;
   |     ^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:4:5
   |
LL |     0o3.0f32;
   |     ^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:5:5
   |
LL |     0o4e4;
   |     ^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:6:5
   |
LL |     0o5.0e5;
   |     ^^^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:7:5
   |
LL |     0o6e6f32;
   |     ^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:8:5
   |
LL |     0o7.0e7f64;
   |     ^^^^^^^

error: hexadecimal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:9:5
   |
LL |     0x8.0e+9;
   |     ^^^^^^^^

error: hexadecimal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:10:5
   |
LL |     0x9.0e-9;
   |     ^^^^^^^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:11:5
   |
LL |     0o;
   |     ^^

error: expected at least one digit in exponent
  --> $DIR/lex-bad-numeric-literals.rs:12:5
   |
LL |     1e+;
   |     ^^^

error: hexadecimal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:13:5
   |
LL |     0x539.0;
   |     ^^^^^^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:18:5
   |
LL |     0x;
   |     ^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:19:5
   |
LL |     0xu32;
   |     ^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:20:5
   |
LL |     0ou32;
   |     ^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:21:5
   |
LL |     0bu32;
   |     ^^

error[E0768]: no valid digits found for number
  --> $DIR/lex-bad-numeric-literals.rs:22:5
   |
LL |     0b;
   |     ^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:24:5
   |
LL |     0o123.456;
   |     ^^^^^^^^^

error: binary float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:26:5
   |
LL |     0b111.101;
   |     ^^^^^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:3:5
   |
LL |     0o2f32;
   |     ^^^^^^ not supported

error: integer literal is too large
  --> $DIR/lex-bad-numeric-literals.rs:14:5
   |
LL |     9900000000000000000000000000999999999999999999999999999999;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: integer literal is too large
  --> $DIR/lex-bad-numeric-literals.rs:16:5
   |
LL |     9900000000000000000000000000999999999999999999999999999999;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: octal float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:23:5
   |
LL |     0o123f64;
   |     ^^^^^^^^ not supported

error: binary float literal is not supported
  --> $DIR/lex-bad-numeric-literals.rs:25:5
   |
LL |     0b101f64;
   |     ^^^^^^^^ not supported

error: aborting due to 23 previous errors

For more information about this error, try `rustc --explain E0768`.