]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/typeof/type_mismatch.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / typeof / type_mismatch.stderr
index e82b5e4497383fd5cd9b28f8ded4e955b35ff715..e75214cd31a6d41ea073cf570788bfd522730ee2 100644 (file)
@@ -3,6 +3,11 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented
    |
 LL |     let b: typeof(a) = 1i8;
    |            ^^^^^^^^^ reserved keyword
+   |
+help: consider replacing `typeof(...)` with an actual type
+   |
+LL |     let b: u8 = 1i8;
+   |            ~~
 
 error[E0308]: mismatched types
   --> $DIR/type_mismatch.rs:5:24