about summary refs log tree commit diff
path: root/tests/ui/impl-trait/impl-fn-predefined-lifetimes.edition2015.stderr
blob: 94476bcfbe88ef2f55f7c9ff1f1503c39f6ac7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0792]: expected generic lifetime parameter, found `'_`
  --> $DIR/impl-fn-predefined-lifetimes.rs:8:9
   |
LL | fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
   |                                                -- this generic parameter must be used with a generic lifetime parameter
LL |     |x| x
   |         ^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0792`.