diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2091-track-caller/error-with-start.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2091-track-caller/error-with-start.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2091-track-caller/error-with-start.rs b/tests/ui/rfcs/rfc-2091-track-caller/error-with-start.rs new file mode 100644 index 000000000..0cab47170 --- /dev/null +++ b/tests/ui/rfcs/rfc-2091-track-caller/error-with-start.rs @@ -0,0 +1,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()); +} |