File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
3
3
|
4
4
LL | let x: typeof(92) = 92;
5
5
| ^^^^^^^^^^ reserved keyword
6
+ |
7
+ help: consider replacing `typeof(...)` with an actual type
8
+ |
9
+ LL | let x: i32 = 92;
10
+ | ~~~
6
11
7
12
error: aborting due to previous error
8
13
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
3
3
|
4
4
LL | let x: typeof(92) = 92;
5
5
| ^^^^^^^^^^ reserved keyword
6
+ |
7
+ help: consider replacing `typeof(...)` with an actual type
8
+ |
9
+ LL | let x: i32 = 92;
10
+ | ~~~
6
11
7
12
error: aborting due to previous error
8
13
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
3
3
|
4
4
LL | let b: typeof(a) = 1i8;
5
5
| ^^^^^^^^^ reserved keyword
6
+ |
7
+ help: consider replacing `typeof(...)` with an actual type
8
+ |
9
+ LL | let b: u8 = 1i8;
10
+ | ~~
6
11
7
12
error[E0308]: mismatched types
8
13
--> $DIR/type_mismatch.rs:5:24
You can’t perform that action at this time.
0 commit comments