]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/error-with-main.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / rfc-2091-track-caller / error-with-main.rs
1 #[track_caller] //~ ERROR `main` function is not allowed to be
2 fn main() {
3     panic!("{}: oh no", std::panic::Location::caller());
4 }