diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs b/src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs deleted file mode 100644 index b6eebd4e3..000000000 --- a/src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn cplusplus_mode(x: isize) -> &'static isize { - &x - //~^ ERROR cannot return reference to function parameter `x` [E0515] -} - -fn main() {} |