2020-10-18 20:52:36 +00:00
|
|
|
// build-pass (FIXME(62277): should be check-pass)
|
|
|
|
|
|
|
|
#[allow(unreachable_code)]
|
|
|
|
fn main() {
|
|
|
|
panic!("here's a brace: {"); //~ WARN Panic message contains a brace
|
|
|
|
std::panic!("another one: }"); //~ WARN Panic message contains a brace
|
2020-10-18 21:36:00 +00:00
|
|
|
core::panic!("Hello {}"); //~ WARN Panic message contains an unused formatting placeholder
|
|
|
|
assert!(false, "{:03x} bla"); //~ WARN Panic message contains an unused formatting placeholder
|
2020-10-18 22:45:07 +00:00
|
|
|
debug_assert!(false, "{{}} bla"); //~ WARN Panic message contains a brace
|
2020-10-18 20:52:36 +00:00
|
|
|
}
|