1 error: expected crate top-level item to be a module after macro expansion, found a function
2 --> $DIR/issue-59191-replace-root-with-fn.rs:7:1
4 LL | #![issue_59191::no_main]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
9 error[E0601]: `main` function not found in crate `issue_59191_replace_root_with_fn`
10 --> $DIR/issue-59191-replace-root-with-fn.rs:5:1
12 LL | / #![feature(custom_inner_attributes)]
14 LL | | #![issue_59191::no_main]
15 | |________________________^ consider adding a `main` function to `$DIR/issue-59191-replace-root-with-fn.rs`
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0601`.