]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-expected-token.rs
1 #![feature(generic_associated_types)]
2
3 trait X {
4     type Y<'a>;
5 }
6
7 fn f1<'a>(arg : Box<dyn X<Y = B = &'a ()>>) {}
8     //~^ ERROR: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
9
10 fn main() {}