]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_const_exprs/issue-102768.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / const-generics / generic_const_exprs / issue-102768.stderr
1 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
2   --> $DIR/issue-102768.rs:9:30
3    |
4 LL |     fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
5    |                              ^ expected 1 lifetime argument
6    |
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/issue-102768.rs:5:10
9    |
10 LL |     type Y<'a>;
11    |          ^ --
12 help: add missing lifetime argument
13    |
14 LL |     fn f2<'a>(arg: Box<dyn X<Y<'_, 1> = &'a ()>>) {}
15    |                                +++
16
17 error[E0107]: this associated type takes 0 generic arguments but 1 generic argument was supplied
18   --> $DIR/issue-102768.rs:9:30
19    |
20 LL |     fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
21    |                              ^--- help: remove these generics
22    |                              |
23    |                              expected 0 generic arguments
24    |
25 note: associated type defined here, with 0 generic parameters
26   --> $DIR/issue-102768.rs:5:10
27    |
28 LL |     type Y<'a>;
29    |          ^
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0107`.