fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
492 B11 linesraw
1error[E0621]: explicit lifetime required in the type of `p`
2  --> $DIR/regions-infer-at-fn-not-param.rs:13:57
3   |
4LL | 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
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0621`.