fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: 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 3 | 4LL | #![issue_59191::no_main] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) 8 9error[E0601]: `main` function not found in crate `issue_59191_replace_root_with_fn` 10 --> $DIR/issue-59191-replace-root-with-fn.rs:5:1 11 | 12LL | / #![feature(custom_inner_attributes)] 13LL | | 14LL | | #![issue_59191::no_main] 15 | |________________________^ consider adding a `main` function to `$DIR/issue-59191-replace-root-with-fn.rs` 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0601`.