You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected panic! to behave like println! and warn me that I have a formatter argument that is unused. Tested with Rust 1.18.0.
println!
println!("{:p}");
error: invalid reference to argument `0` (no arguments given)
--> src/main.rs:2:5
|
2 | println!("{:p}");
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate
panic!
panic!("{:p}");
thread 'main' panicked at '{:p}', src/main.rs:4
The text was updated successfully, but these errors were encountered:
I expected
panic!
to behave likeprintln!
and warn me that I have a formatter argument that is unused. Tested with Rust 1.18.0.println!
panic!
The text was updated successfully, but these errors were encountered: