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 help: use angle brackets instead
15 LL | fn foo<'a>(arg: Box<dyn X<Y<'a> = &'a ()>>) {}
18 error: parenthesized generic arguments cannot be used in associated type constraints
19 --> $DIR/gat-trait-path-parenthesised-args.rs:14:27
21 LL | fn bar<'a>(arg: Box<dyn X<Y() = ()>>) {}
24 | help: remove these parentheses
26 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
27 --> $DIR/gat-trait-path-parenthesised-args.rs:7:27
29 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
30 | ^ expected 1 lifetime argument
32 note: associated type defined here, with 1 lifetime parameter: `'a`
33 --> $DIR/gat-trait-path-parenthesised-args.rs:4:8
37 help: add missing lifetime argument
39 LL | fn foo<'a>(arg: Box<dyn X<Y('a, 'a) = &'a ()>>) {}
42 error[E0107]: this associated type takes 0 generic arguments but 1 generic argument was supplied
43 --> $DIR/gat-trait-path-parenthesised-args.rs:7:27
45 LL | fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
46 | ^---- help: remove these generics
48 | expected 0 generic arguments
50 note: associated type defined here, with 0 generic parameters
51 --> $DIR/gat-trait-path-parenthesised-args.rs:4:8
56 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
57 --> $DIR/gat-trait-path-parenthesised-args.rs:14:27
59 LL | fn bar<'a>(arg: Box<dyn X<Y() = ()>>) {}
60 | ^ expected 1 lifetime argument
62 note: associated type defined here, with 1 lifetime parameter: `'a`
63 --> $DIR/gat-trait-path-parenthesised-args.rs:4:8
67 help: add missing lifetime argument
69 LL | fn bar<'a>(arg: Box<dyn X<Y('a) = ()>>) {}
72 error: aborting due to 6 previous errors
74 For more information about this error, try `rustc --explain E0107`.