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