]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38715.stderr
Rollup merge of #53233 - andre-richter:master, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-38715.stderr
1 error: a macro named `foo` has already been exported
2   --> $DIR/issue-38715.rs:15:1
3    |
4 LL | macro_rules! foo { () => {} } //~ ERROR a macro named `foo` has already been exported
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` already exported
6    |
7    = note: #[deny(duplicate_macro_exports)] on by default
8    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
9    = note: for more information, see issue #35896 <https://github.com/rust-lang/rust/issues/35896>
10 note: previous macro export is now shadowed
11   --> $DIR/issue-38715.rs:12:1
12    |
13 LL | macro_rules! foo { ($i:ident) => {} }
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error[E0601]: `main` function not found in crate `issue_38715`
17    |
18    = note: consider adding a `main` function to `$DIR/issue-38715.rs`
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0601`.