]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2091-track-caller/error-with-start.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / ui / rfc-2091-track-caller / error-with-start.rs
1 #![feature(start)]
2
3 #[start]
4 #[track_caller] //~ ERROR `start` is not allowed to be `#[track_caller]`
5 fn start(_argc: isize, _argv: *const *const u8) -> isize {
6     panic!("{}: oh no", std::panic::Location::caller());
7 }