rust/src/test/ui/span/visibility-ty-params.rs

13 lines
222 B
Rust
Raw Normal View History

macro_rules! m {
2017-03-07 17:50:13 -06:00
($p: path) => (pub(in $p) struct Z;)
}
struct S<T>(T);
2017-08-21 16:54:03 -05:00
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
mod m {
2017-08-21 16:54:03 -05:00
m!{ m<> } //~ ERROR unexpected generic arguments in path
}
fn main() {}