mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 14:47:48 +00:00
10 lines
396 B
Rust
10 lines
396 B
Rust
//@ edition:2021
|
|
|
|
fn main() {
|
|
panic!(123); //~ ERROR: format argument must be a string literal
|
|
panic!("{}"); //~ ERROR: 1 positional argument in format string
|
|
core::panic!("{}"); //~ ERROR: 1 positional argument in format string
|
|
assert!(false, 123); //~ ERROR: format argument must be a string literal
|
|
assert!(false, "{}"); //~ ERROR: 1 positional argument in format string
|
|
}
|