Skip to content

Commit fcb28cf

Browse files
committed
---
yaml --- r: 123699 b: refs/heads/try c: b0303b3 h: refs/heads/master i: 123697: 15e4fae 123695: ba61646 v: v3
1 parent d41d1f5 commit fcb28cf

File tree

3 files changed

+15
-54
lines changed

3 files changed

+15
-54
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: 3c7f619b76b87c400e270eebfa7625844afcd673
5+
refs/heads/try: b0303b3c22eeb602ed8d51a267f52306aadc9322
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/test/compile-fail/lex-bad-numeric-literals.rs

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,18 @@ fn main() {
1818
0o7.0e7f64; //~ ERROR: octal float literal is not supported
1919
0x8.0e+9; //~ ERROR: hexadecimal float literal is not supported
2020
0x9.0e-9; //~ ERROR: hexadecimal float literal is not supported
21+
0o; //~ ERROR: no valid digits
22+
1e+; //~ ERROR: expected at least one digit in exponent
23+
0x539.0; //~ ERROR: hexadecimal float literal is not supported
24+
99999999999999999999999999999999; //~ ERROR: int literal is too large
25+
99999999999999999999999999999999u32; //~ ERROR: int literal is too large
26+
0x; //~ ERROR: no valid digits
27+
0xu32; //~ ERROR: no valid digits
28+
0ou32; //~ ERROR: no valid digits
29+
0bu32; //~ ERROR: no valid digits
30+
0b; //~ ERROR: no valid digits
31+
0o123f64; //~ ERROR: octal float literal is not supported
32+
0o123.456; //~ ERROR: octal float literal is not supported
33+
0b101f64; //~ ERROR: binary float literal is not supported
34+
0b111.101; //~ ERROR: binary float literal is not supported
2135
}
22-
23-
static F: f32 =
24-
1e+ //~ ERROR: scan_exponent: bad fp literal
25-
;
26-
27-
28-
static F: f32 =
29-
0x539.0 //~ ERROR: hexadecimal float literal is not supported
30-
;
31-
32-
static I: int =
33-
99999999999999999999999999999999 //~ ERROR: int literal is too large
34-
;
35-
36-
static J: int =
37-
99999999999999999999999999999999u32 //~ ERROR: int literal is too large
38-
;
39-
40-
static A: int =
41-
0x //~ ERROR: no valid digits
42-
;
43-
static B: int =
44-
0xu32 //~ ERROR: no valid digits
45-
;
46-
static C: int =
47-
0ou32 //~ ERROR: no valid digits
48-
;
49-
static D: int =
50-
0bu32 //~ ERROR: no valid digits
51-
;
52-
static E: int =
53-
0b //~ ERROR: no valid digits
54-
;
55-
static F: int =
56-
0o //~ ERROR: no valid digits
57-
;

branches/try/src/test/compile-fail/no-oct-float-literal.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)