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