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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
279 B
Rust
Raw Normal View History

macro_rules! m {
2017-03-08 02:50:13 +03:00
($p: path) => (pub(in $p) struct Z;)
}
struct S<T>(T);
2017-08-21 14:54:03 -07:00
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
//~| ERROR expected module, found struct `S`
mod m {
2017-08-21 14:54:03 -07:00
m!{ m<> } //~ ERROR unexpected generic arguments in path
}
fn main() {}