We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb06be commit bdada8bCopy full SHA for bdada8b
tests/ui/const-ptr/pointer-address-stability.rs
@@ -1,6 +1,9 @@
1
-//@ run-pass
2
-// Issue #2040
+//! Check that taking the address of a stack variable with `&`
+//! yields a stable and comparable pointer.
3
+//!
4
+//! Regression test for <https://github.com/rust-lang/rust/issues/2040>.
5
6
+//@ run-pass
7
8
pub fn main() {
9
let foo: isize = 1;
0 commit comments