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:6:1
4 LL | #![issue_59191::no_main]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: this error originates in the attribute macro `issue_59191::no_main` (in Nightly builds, run with -Z macro-backtrace for more info)
9 error: aborting due to previous error