diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-46471.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-46471.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/borrowck/issue-46471.rs b/src/test/ui/borrowck/issue-46471.rs deleted file mode 100644 index 8922005d2..000000000 --- a/src/test/ui/borrowck/issue-46471.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn foo() -> &'static u32 { - let x = 0; - &x - //~^ ERROR cannot return reference to local variable `x` [E0515] -} - -fn main() { } |