]> git.lizzy.rs Git - rust.git/commitdiff
Modified expected error messages in accordance with rebase.
authorAlexander Regueiro <alexreg@me.com>
Sun, 1 Jul 2018 01:26:31 +0000 (02:26 +0100)
committerAlexander Regueiro <alexreg@me.com>
Sun, 1 Jul 2018 01:26:31 +0000 (02:26 +0100)
src/test/compile-fail/issue-14227.rs
src/test/compile-fail/issue-28324.rs

index 1516e18a86f9fef06dc2ffc0c6572619e22613b1..95f017061a2576efb65e4baf94083394bbc48e18 100644 (file)
@@ -14,6 +14,9 @@
     pub static symbol: ();
 }
 static CRASH: () = symbol;
-//~^ ERROR constant evaluation error
+//~^ ERROR could not evaluate static initializer
+//~| tried to read from foreign (extern) static
+//~^^^ ERROR could not evaluate static initializer
+//~| tried to read from foreign (extern) static
 
 fn main() {}
index 0f9fe3fe246f679173bc906f478161e718c22b8e..8512238dd31ca668d1dfa0dd1fd1bf248a2113ad 100644 (file)
@@ -15,7 +15,9 @@
 }
 
 pub static BAZ: u32 = *&error_message_count;
-//~^ ERROR constant evaluation error
+//~^ ERROR could not evaluate static initializer
+//~| tried to read from foreign (extern) static
+//~^^^ ERROR could not evaluate static initializer
 //~| tried to read from foreign (extern) static
 
 fn main() {}