summary refs log tree commit diff
path: root/src/test/ui/proc-macro/issue-59191-replace-root-with-fn.stderr
blob: 5995a4891f37d5d4374f56a4bb59d61a9eb10b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error: expected crate top-level item to be a module after macro expansion, found a function
  --> $DIR/issue-59191-replace-root-with-fn.rs:7:1
   |
LL | #![issue_59191::no_main]
   | ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0601]: `main` function not found in crate `issue_59191_replace_root_with_fn`
  --> $DIR/issue-59191-replace-root-with-fn.rs:5:1
   |
LL | / #![feature(custom_inner_attributes)]
LL | |
LL | | #![issue_59191::no_main]
   | |________________________^ consider adding a `main` function to `$DIR/issue-59191-replace-root-with-fn.rs`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0601`.