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