]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/issue-59191-replace-root-with-fn.rs
Rollup merge of #86478 - ehuss:future-incompat-test, r=oli-obk
[rust.git] / src / test / ui / proc-macro / issue-59191-replace-root-with-fn.rs
1 // edition:2018
2 // aux-crate:issue_59191=issue-59191.rs
3 // Test that using a macro to replace the entire crate tree with a non-'mod' item errors out nicely.
4 // `issue_59191::no_main` replaces whatever's passed in with `fn main() {}`.
5 #![feature(custom_inner_attributes)]
6 #![issue_59191::no_main]
7 //~^ ERROR expected crate top-level item to be a module after macro expansion, found a function