]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/const-no-type.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / suggestions / const-no-type.rs
index 99200a965dd2160b58e2f3d43e8d0324ba0340f4..b931a04c2860c9f7033203b68de717208ffca51f 100644 (file)
@@ -35,6 +35,11 @@ const C = 42;
 //~| HELP provide a type for the item
 //~| SUGGESTION C: i32
 
+const D = &&42;
+//~^ ERROR missing type for `const` item
+//~| HELP provide a type for the item
+//~| SUGGESTION D: &&i32
+
 static S = Vec::<String>::new();
 //~^ ERROR missing type for `static` item
 //~| HELP provide a type for the item
@@ -43,4 +48,4 @@ static S = Vec::<String>::new();
 static mut SM = "abc";
 //~^ ERROR missing type for `static mut` item
 //~| HELP provide a type for the item
-//~| SUGGESTION &'static str
+//~| SUGGESTION &str