File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 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
33 |
44LL | 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
712error: aborting due to previous error
813
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
33 |
44LL | 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
712error: aborting due to previous error
813
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
33 |
44LL | 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
712error[E0308]: mismatched types
813 --> $DIR/type_mismatch.rs:5:24
You can’t perform that action at this time.
0 commit comments