]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/error-with-main.rs
Rollup merge of #101851 - Xiretza:diagnostic-derive-cleanups, r=davidtwco
[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 }