mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00
14 lines
403 B
Rust
14 lines
403 B
Rust
![]() |
const fn failure() {
|
||
|
panic!("{:?}", 0);
|
||
|
//~^ ERROR cannot call non-const formatting macro in constant functions
|
||
|
}
|
||
|
|
||
|
const fn print() {
|
||
|
println!("{:?}", 0);
|
||
|
//~^ ERROR cannot call non-const formatting macro in constant functions
|
||
|
//~| ERROR `Arguments::<'a>::new_v1` is not yet stable as a const fn
|
||
|
//~| ERROR cannot call non-const fn `_print` in constant functions
|
||
|
}
|
||
|
|
||
|
fn main() {}
|