Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
test-attrs
/
test-should-fail-good-message.rs
blob: 83519c4524a62145d06105023039b43f2666727c [
file
] [
log
] [
blame
]
// run-pass
// needs-unwind
// compile-flags: --test
#[
test
]
#[
should_panic
(
expected
=
"foo"
)]
pub
fn
test_foo
()
{
panic
!(
"foo bar"
)
}
#[
test
]
#[
should_panic
(
expected
=
"foo"
)]
pub
fn
test_foo_dynamic
()
{
panic
!(
"{} bar"
,
"foo"
)
}