]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-46471.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / borrowck / issue-46471.rs
1 fn foo() -> &'static u32 {
2     let x = 0;
3     &x
4     //~^ ERROR cannot return reference to local variable `x` [E0515]
5 }
6
7 fn main() { }