rust/tests/ui/rfc-2091-track-caller/error-with-main.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
134 B
Rust
Raw Normal View History

2020-08-04 00:30:04 -05:00
#[track_caller] //~ ERROR `main` function is not allowed to be
fn main() {
panic!("{}: oh no", std::panic::Location::caller());
}