]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-infer-at-fn-not-param.stderr
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-infer-at-fn-not-param.stderr
1 error[E0621]: explicit lifetime required in the type of `p`
2   --> $DIR/regions-infer-at-fn-not-param.rs:13:57
3    |
4 LL | fn take1<'a>(p: Parameterized1) -> Parameterized1<'a> { p }
5    |                 --------------                          ^ lifetime `'a` required
6    |                 |
7    |                 help: add explicit lifetime `'a` to the type of `p`: `Parameterized1<'a>`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.