1 error: lifetime in trait object type must be followed by `+`
2 --> $DIR/gat-trait-path-parenthesised-args.rs:7:29
4 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
7 error: parenthesized generic arguments cannot be used in associated type constraints
8 --> $DIR/gat-trait-path-parenthesised-args.rs:7:27
10 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
13 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
14 --> $DIR/gat-trait-path-parenthesised-args.rs:7:27
16 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
17 | ^ expected 1 lifetime argument
19 note: associated type defined here, with 1 lifetime parameter: `'a`
20 --> $DIR/gat-trait-path-parenthesised-args.rs:4:8
24 help: add missing lifetime argument
26 LL | fn foo<'a>(arg: Box<dyn X<Y('a, 'a) = &'a ()>>) {}
29 error[E0107]: this associated type takes 0 generic arguments but 1 generic argument was supplied
30 --> $DIR/gat-trait-path-parenthesised-args.rs:7:27
32 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
33 | ^---- help: remove these generics
35 | expected 0 generic arguments
37 note: associated type defined here, with 0 generic parameters
38 --> $DIR/gat-trait-path-parenthesised-args.rs:4:8
43 error: aborting due to 4 previous errors
45 For more information about this error, try `rustc --explain E0107`.