]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46983.rs
Merge remote-tracking branch 'upstream/master'
[rust.git] / src / test / ui / issues / issue-46983.rs
1 #![feature(nll)]
2
3 fn foo(x: &u32) -> &'static u32 {
4     &*x
5     //~^ ERROR explicit lifetime required in the type of `x` [E0621]
6 }
7
8 fn main() {}