summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2091-track-caller/error-with-start.rs
blob: 0cab47170631bab4b66d0058d2721fb95214b137 (plain)
1
2
3
4
5
6
7
#![feature(start)]

#[start]
#[track_caller] //~ ERROR `start` is not allowed to be `#[track_caller]`
fn start(_argc: isize, _argv: *const *const u8) -> isize {
    panic!("{}: oh no", std::panic::Location::caller());
}