summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2091-track-caller/error-with-main.rs
blob: b2ea31bb5178b48493c49aaa089644bfb2fd95d0 (plain)
1
2
3
4
#[track_caller] //~ ERROR `main` function is not allowed to be
fn main() {
    panic!("{}: oh no", std::panic::Location::caller());
}