diff options
Diffstat (limited to 'tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs')
-rw-r--r-- | tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs b/tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs new file mode 100644 index 000000000..a4161d4fc --- /dev/null +++ b/tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs @@ -0,0 +1,10 @@ +// 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() {}`. + +// edition:2018 +// aux-crate:issue_59191=issue-59191.rs +// error-pattern: requires `sized` lang_item + +#![feature(custom_inner_attributes)] +#![issue_59191::no_main] +#![issue_59191::no_main] |