File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ extern {
1414 pub static symbol: ( ) ;
1515}
1616static CRASH : ( ) = symbol;
17- //~^ ERROR constant evaluation error
17+ //~^ ERROR could not evaluate static initializer
18+ //~| tried to read from foreign (extern) static
19+ //~^^^ ERROR could not evaluate static initializer
20+ //~| tried to read from foreign (extern) static
1821
1922fn main ( ) { }
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ extern {
1515}
1616
1717pub static BAZ : u32 = * & error_message_count;
18- //~^ ERROR constant evaluation error
18+ //~^ ERROR could not evaluate static initializer
19+ //~| tried to read from foreign (extern) static
20+ //~^^^ ERROR could not evaluate static initializer
1921//~| tried to read from foreign (extern) static
2022
2123fn main ( ) { }
You can’t perform that action at this time.
0 commit comments