Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
d0cc289ec0fa35de2aa35df5445ebca332ccf4f6
/
.
/
src
/
test
/
run-fail
/
test-should-panic-bad-message.rs
blob: b73d4d7377a34cd9a2fa98b2c611cf2e80a326a1 [
file
] [
log
] [
blame
]
// compile-flags: --test
// error-pattern:panicked at 'bar'
// check-stdout
#[
test
]
#[
should_panic
(
expected
=
"foo"
)]
pub
fn
test_bar
()
{
panic
!(
"bar"
)
}