mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
157 B
Rust
11 lines
157 B
Rust
// run-fail
|
|
// check-stdout
|
|
// compile-flags: --test
|
|
// ignore-emscripten
|
|
|
|
#[test]
|
|
#[should_panic(expected = "foobar")]
|
|
fn test_foo() {
|
|
panic!("blah")
|
|
}
|