]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-infer-at-fn-not-param.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / 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:23: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`.