]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-46983.stderr
Auto merge of #50665 - alexcrichton:fix-single-item-path-warnings, r=oli-obk
[rust.git] / src / test / ui / issue-46983.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2   --> $DIR/issue-46983.rs:14:5
3    |
4 LL | fn foo(x: &u32) -> &'static u32 {
5    |        - consider changing the type of `x` to `&'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`.