]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/import-ty-params.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / span / import-ty-params.rs
CommitLineData
a7813a04
XL
1mod a {
2 pub mod b {
3 pub mod c {
4 pub struct S<T>(T);
5 }
223e47cc
LB
6 }
7}
8
a7813a04
XL
9macro_rules! import {
10 ($p: path) => (use $p;);
223e47cc 11}
a7813a04 12
3b2f2976
XL
13fn f1() {
14 import! { a::b::c::S<u8> } //~ ERROR unexpected generic arguments in path
15}
16fn f2() {
17 import! { a::b::c::S<> } //~ ERROR unexpected generic arguments in path
18}
5869c6ff
XL
19fn f3() {
20 import! { a::b<>::c<u8>::S<> } //~ ERROR unexpected generic arguments in path
21}
a7813a04
XL
22
23fn main() {}