summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-var-type-out-of-scope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-var-type-out-of-scope.rs')
-rw-r--r--src/test/ui/regions/regions-var-type-out-of-scope.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/regions/regions-var-type-out-of-scope.rs b/src/test/ui/regions/regions-var-type-out-of-scope.rs
deleted file mode 100644
index aba55e9df..000000000
--- a/src/test/ui/regions/regions-var-type-out-of-scope.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-fn id<T>(x: T) -> T { x }
-
-fn foo(cond: bool) {
- // Here we will infer a type that uses the
- // region of the if stmt then block:
- let mut x;
-
- if cond {
- x = &id(3); //~ ERROR temporary value dropped while borrowed
- assert_eq!(*x, 3);
- }
-}
-
-fn main() {}