2016-04-18 21:42:18 +00:00
|
|
|
macro_rules! m {
|
2017-03-07 23:50:13 +00:00
|
|
|
($p: path) => (pub(in $p) struct Z;)
|
2016-04-18 21:42:18 +00:00
|
|
|
}
|
2013-12-10 07:16:18 +00:00
|
|
|
|
2016-04-18 21:42:18 +00:00
|
|
|
struct S<T>(T);
|
2017-08-21 21:54:03 +00:00
|
|
|
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
|
2018-12-16 17:23:27 +00:00
|
|
|
//~| ERROR expected module, found struct `S`
|
2016-04-18 21:42:18 +00:00
|
|
|
|
2017-07-23 16:32:36 +00:00
|
|
|
mod m {
|
2017-08-21 21:54:03 +00:00
|
|
|
m!{ m<> } //~ ERROR unexpected generic arguments in path
|
2017-07-23 16:32:36 +00:00
|
|
|
}
|
|
|
|
|
2016-04-18 21:42:18 +00:00
|
|
|
fn main() {}
|