]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/visibility-ty-params.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / visibility-ty-params.rs
1 macro_rules! m {
2     ($p: path) => (pub(in $p) struct Z;)
3 }
4
5 struct S<T>(T);
6 m!{ S<u8> } //~ ERROR unexpected generic arguments in path
7             //~| ERROR expected module, found struct `S`
8
9 mod m {
10     m!{ m<> } //~ ERROR unexpected generic arguments in path
11 }
12
13 fn main() {}