blob: 11c2cf44cb4599184648f73c88da8a3352de00e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
macro_rules! m {
($p: path) => (pub(in $p) struct Z;)
}
struct S<T>(T);
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
//~| ERROR failed to resolve: `S` is a struct, not a module [E0433]
mod m {
m!{ m<> } //~ ERROR unexpected generic arguments in path
}
fn main() {}
|