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
|
2023-03-19 10:46:19 +00:00
|
|
|
//~| ERROR failed to resolve: `S` is a struct, not a module [E0433]
|
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() {}
|