summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/promote_const_let.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/promote_const_let.rs')
-rw-r--r--src/test/ui/consts/promote_const_let.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/consts/promote_const_let.rs b/src/test/ui/consts/promote_const_let.rs
deleted file mode 100644
index 51a0fec2e..000000000
--- a/src/test/ui/consts/promote_const_let.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-fn main() {
- let x: &'static u32 = {
- let y = 42;
- &y //~ ERROR does not live long enough
- };
- let x: &'static u32 = &{ //~ ERROR temporary value dropped while borrowed
- let y = 42;
- y
- };
-}