Skip to content

Commit b4b048c

Browse files
committed
rustup; better comment in storage_dead_dangling test
1 parent 12dac5c commit b4b048c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
36f1f04f18b89ba4a999bcfd6584663fd6fc1c5d
1+
2b8fbe6b0b6db7960828bd2c9a50e52c9a5d0aef

tests/compile-fail/storage_dead_dangling.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ fn main() {
1818
fill(&mut x);
1919
_y = x;
2020
}
21+
// Now we use a pointer to `x` which is no longer in scope, and thus dead (even though the
22+
// `main` stack frame still exists).
2123
evil();
2224
}

0 commit comments

Comments
 (0)