]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/E0394.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / test / compile-fail / E0394.rs
index 1b86b8ad674962440afe4fc759baa8e1e2e51339..e35d038248c8148f39b1a377be151a7fe258f8c5 100644 (file)
@@ -9,7 +9,10 @@
 // except according to those terms.
 
 static A: u32 = 0;
-static B: u32 = A; //~ ERROR E0394
+static B: u32 = A;
+//~^ ERROR E0394
+//~| NOTE referring to another static by value
+//~| NOTE use the address-of operator or a constant instead
 
 fn main() {
 }