2020-02-01 18:07:26 -08:00
|
|
|
// Test that using a macro to replace the entire crate tree with a non-'mod' item errors out nicely.
|
|
|
|
|
// `issue_59191::no_main` replaces whatever's passed in with `fn main() {}`.
|
2021-10-17 19:32:34 +03:00
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2018
|
2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: issue-59191.rs
|
2025-01-29 23:54:15 +00:00
|
|
|
//@ needs-unwind (affects error output)
|
2021-10-17 19:32:34 +03:00
|
|
|
|
2020-02-01 18:07:26 -08:00
|
|
|
#![feature(custom_inner_attributes)]
|
|
|
|
|
#![issue_59191::no_main]
|
2021-10-17 19:32:34 +03:00
|
|
|
#![issue_59191::no_main]
|
2025-03-29 02:41:32 +03:00
|
|
|
|
|
|
|
|
//~? ERROR `#[panic_handler]` function required, but not found
|
|
|
|
|
//~? ERROR unwinding panics are not supported without std
|