]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/error-with-main.rs
Auto merge of #2583 - RalfJung:rustup, r=oli-obk
[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 }