rustup; better comment in storage_dead_dangling test

This commit is contained in:
Ralf Jung 2021-03-22 12:35:30 +01:00
parent 12dac5c0f7
commit b4b048cc86
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
36f1f04f18b89ba4a999bcfd6584663fd6fc1c5d
2b8fbe6b0b6db7960828bd2c9a50e52c9a5d0aef

View file

@ -18,5 +18,7 @@ fn main() {
fill(&mut x);
_y = x;
}
// Now we use a pointer to `x` which is no longer in scope, and thus dead (even though the
// `main` stack frame still exists).
evil();
}