Skip to content

Commit

Permalink
Modified expected error messages in accordance with rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Regueiro committed Jul 1, 2018
1 parent 13b82ec commit 1c34227
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/test/compile-fail/issue-14227.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ extern {
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() {}
4 changes: 3 additions & 1 deletion src/test/compile-fail/issue-28324.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ extern {
}

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() {}

0 comments on commit 1c34227

Please sign in to comment.