Skip to content

Commit 8412d5d

Browse files
committed
--bless tests
1 parent d544092 commit 8412d5d

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/test/ui/error-codes/E0516.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
33
|
44
LL | let x: typeof(92) = 92;
55
| ^^^^^^^^^^ reserved keyword
6+
|
7+
help: consider replacing `typeof(...)` with an actual type
8+
|
9+
LL | let x: i32 = 92;
10+
| ~~~
611

712
error: aborting due to previous error
813

src/test/ui/issues/issue-29184.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
33
|
44
LL | let x: typeof(92) = 92;
55
| ^^^^^^^^^^ reserved keyword
6+
|
7+
help: consider replacing `typeof(...)` with an actual type
8+
|
9+
LL | let x: i32 = 92;
10+
| ~~~
611

712
error: aborting due to previous error
813

src/test/ui/typeof/type_mismatch.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
33
|
44
LL | let b: typeof(a) = 1i8;
55
| ^^^^^^^^^ reserved keyword
6+
|
7+
help: consider replacing `typeof(...)` with an actual type
8+
|
9+
LL | let b: u8 = 1i8;
10+
| ~~
611

712
error[E0308]: mismatched types
813
--> $DIR/type_mismatch.rs:5:24

0 commit comments

Comments
 (0)