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