diff options
Diffstat (limited to 'src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs')
-rw-r--r-- | src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs b/src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs deleted file mode 100644 index dca26742d..000000000 --- a/src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs +++ /dev/null @@ -1,12 +0,0 @@ -// run-pass - -fn borrow<T>(x: &T) -> &T {x} - -pub fn main() { - let x: Box<_> = Box::new(3); - loop { - let y = borrow(&*x); - assert_eq!(*x, *y); - break; - } -} |