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
302 B
Rust
Raw Normal View History

macro_rules! m {
2017-03-07 23:50:13 +00:00
($p: path) => (pub(in $p) struct Z;)
}
struct S<T>(T);
2017-08-21 21:54:03 +00:00
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
//~| ERROR failed to resolve: `S` is a struct, not a module [E0433]
mod m {
2017-08-21 21:54:03 +00:00
m!{ m<> } //~ ERROR unexpected generic arguments in path
}
fn main() {}