]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/parse/trait-path-expressions.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / parse / trait-path-expressions.rs
1 mod error1 {
2 trait X {
3 type Y<'a>;
4 }
5
6 fn f1<'a>(arg : Box<dyn X< 1 = 32 >>) {}
7 //~^ ERROR: expected expression, found `)`
8 }
9
10 mod error2 {
11
12 trait X {
13 type Y<'a>;
14 }
15
16 fn f2<'a>(arg : Box<dyn X< { 1 } = 32 >>) {}
17 //~^ ERROR: expected one of
18 }
19
20 fn main() {}