Sign in
fuchsia
/
third_party
/
rust
/
7dbfb0a8ca4ab74ee3111e57a024f9e6257ce37c
/
.
/
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"
)
}