mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 05:04:23 +00:00
25 lines
667 B
Rust
25 lines
667 B
Rust
//@ edition:2021
|
|
|
|
fn main() {
|
|
debug_assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
panic!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
|
|
std::debug_assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
std::assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
std::panic!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
|
|
core::debug_assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
core::assert!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
core::panic!(false, 123);
|
|
//~^ ERROR must be a string literal
|
|
}
|