]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/error-with-main.rs
Auto merge of #75137 - Aaron1011:fix/hygiene-skip-expndata, r=petrochenkov
[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 }