]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54189.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-54189.stderr
1 error[E0582]: binding for associated type `Output` references lifetime `'r`, which does not appear in the trait input types
2   --> $DIR/issue-54189.rs:1:35
3    |
4 LL | fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } }
5    |                                   ^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0582`.