1 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
2 --> $DIR/issue-102768.rs:9:30
4 LL | fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
5 | ^ expected 1 lifetime argument
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8 --> $DIR/issue-102768.rs:5:10
12 help: add missing lifetime argument
14 LL | fn f2<'a>(arg: Box<dyn X<Y<'_, 1> = &'a ()>>) {}
17 error[E0107]: this associated type takes 0 generic arguments but 1 generic argument was supplied
18 --> $DIR/issue-102768.rs:9:30
20 LL | fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
21 | ^--- help: remove these generics
23 | expected 0 generic arguments
25 note: associated type defined here, with 0 generic parameters
26 --> $DIR/issue-102768.rs:5:10
31 error: aborting due to 2 previous errors
33 For more information about this error, try `rustc --explain E0107`.