]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/issue-59191-replace-root-with-fn.stderr
Rollup merge of #76119 - Amjad50:stabilizing-move_ref_pattern, r=nikomatsakis
[rust.git] / src / test / ui / proc-macro / issue-59191-replace-root-with-fn.stderr
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
3    |
4 LL | #![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
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
11    |
12 LL | / #![feature(custom_inner_attributes)]
13 LL | |
14 LL | | #![issue_59191::no_main]
15    | |________________________^ consider adding a `main` function to `$DIR/issue-59191-replace-root-with-fn.rs`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0601`.