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

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