rust/tests/ui/span/visibility-ty-params.rs

14 lines
279 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
//~| ERROR expected module, found struct `S`
mod m {
2017-08-21 16:54:03 -05:00
m!{ m<> } //~ ERROR unexpected generic arguments in path
}
fn main() {}