Skip to content

Commit 6970c92

Browse files
Update UI tests
1 parent d64a4b5 commit 6970c92

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
error: no valid digits found for number
1+
error[E0768]: no valid digits found for number
22
--> $DIR/issue-1802-1.rs:5:16
33
|
44
LL | log(error, 0b);
55
| ^^
66

77
error: aborting due to previous error
88

9+
For more information about this error, try `rustc --explain E0768`.
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
error: no valid digits found for number
1+
error[E0768]: no valid digits found for number
22
--> $DIR/issue-1802-2.rs:5:16
33
|
44
LL | log(error, 0b);
55
| ^^
66

77
error: aborting due to previous error
88

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

src/test/ui/parser/lex-bad-numeric-literals.stderr

+7-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ error: hexadecimal float literal is not supported
4646
LL | 0x9.0e-9;
4747
| ^^^^^^^^
4848

49-
error: no valid digits found for number
49+
error[E0768]: no valid digits found for number
5050
--> $DIR/lex-bad-numeric-literals.rs:11:5
5151
|
5252
LL | 0o;
@@ -64,31 +64,31 @@ error: hexadecimal float literal is not supported
6464
LL | 0x539.0;
6565
| ^^^^^^^
6666

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

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

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

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

91-
error: no valid digits found for number
91+
error[E0768]: no valid digits found for number
9292
--> $DIR/lex-bad-numeric-literals.rs:22:5
9393
|
9494
LL | 0b;
@@ -138,3 +138,4 @@ LL | 0b101f64;
138138

139139
error: aborting due to 23 previous errors
140140

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

0 commit comments

Comments
 (0)