]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / issue-59191-replace-root-with-fn.rs
1 // Test that using a macro to replace the entire crate tree with a non-'mod' item errors out nicely.
2 // `issue_59191::no_main` replaces whatever's passed in with `fn main() {}`.
3
4 // edition:2018
5 // aux-crate:issue_59191=issue-59191.rs
6 // error-pattern: requires `sized` lang_item
7
8 #![feature(custom_inner_attributes)]
9 #![issue_59191::no_main]
10 #![issue_59191::no_main]