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