]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/bound-lifetime-constrained.object.stderr
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / ui / associated-types / bound-lifetime-constrained.object.stderr
1 error[E0582]: binding for associated type `Output` references lifetime `'a`, which does not appear in the trait input types
2   --> $DIR/bound-lifetime-constrained.rs:28:60
3    |
4 LL | fn object1(_: Box<dyn for<'a> Fn(<() as Foo<'a>>::Item) -> &'a i32>) {
5    |                                                            ^^^^^^^
6
7 error[E0582]: binding for associated type `Output` references lifetime `'a`, which does not appear in the trait input types
8   --> $DIR/bound-lifetime-constrained.rs:33:39
9    |
10 LL | fn object2(_: Box<dyn for<'a> Fn() -> <() as Foo<'a>>::Item>) {
11    |                                       ^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0582`.