]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-2091-track-caller/error-with-main.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }