resolve: Introduce two sub-namespaces in macro namespace

This commit is contained in:
Vadim Petrochenkov 2018-09-08 22:19:53 +03:00
parent 994cdd9185
commit beb3b5d22c
10 changed files with 64 additions and 35 deletions

View file

@ -9,5 +9,5 @@
// except according to those terms.
fn main() {
concat!(test!()); //~ ERROR `test` can only be used in attributes
concat!(test!()); //~ ERROR cannot find macro `test!` in this scope
}

View file

@ -1,7 +1,7 @@
error: `test` can only be used in attributes
error: cannot find macro `test!` in this scope
--> $DIR/issue-11692-2.rs:12:13
|
LL | concat!(test!()); //~ ERROR `test` can only be used in attributes
LL | concat!(test!()); //~ ERROR cannot find macro `test!` in this scope
| ^^^^
error: aborting due to previous error