]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46983.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-46983.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2   --> $DIR/issue-46983.rs:2:5
3    |
4 LL | fn foo(x: &u32) -> &'static u32 {
5    |           ---- help: add explicit lifetime `'static` to the type of `x`: `&'static u32`
6 LL |     &*x
7    |     ^^^ lifetime `'static` required
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.