]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/import-ty-params.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / import-ty-params.rs
1 mod a {
2     pub mod b {
3         pub mod c {
4             pub struct S<T>(T);
5         }
6     }
7 }
8
9 macro_rules! import {
10     ($p: path) => (use $p;);
11 }
12
13 fn f1() {
14     import! { a::b::c::S<u8> } //~ ERROR unexpected generic arguments in path
15 }
16 fn f2() {
17     import! { a::b::c::S<> } //~ ERROR unexpected generic arguments in path
18 }
19 fn f3() {
20     import! { a::b<>::c<u8>::S<> } //~ ERROR unexpected generic arguments in path
21 }
22
23 fn main() {}