]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parse/trait-path-expressions.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-expressions.rs
1 #![feature(generic_associated_types)]
2
3 mod error1 {
4   trait X {
5       type Y<'a>;
6   }
7
8   fn f1<'a>(arg : Box<dyn X< 1 = 32 >>) {}
9       //~^ ERROR: expected expression, found `)`
10 }
11
12 mod error2 {
13
14   trait X {
15       type Y<'a>;
16   }
17
18   fn f2<'a>(arg : Box<dyn X< { 1 } = 32 >>) {}
19     //~^ ERROR: expected one of
20 }
21
22 fn main() {}