Skip to content

Commit bdada8b

Browse files
committed
stable-addr-of
1 parent 5eb06be commit bdada8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/ui/const-ptr/pointer-address-stability.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
//@ run-pass
2-
// Issue #2040
1+
//! Check that taking the address of a stack variable with `&`
2+
//! yields a stable and comparable pointer.
3+
//!
4+
//! Regression test for <https://github.com/rust-lang/rust/issues/2040>.
35
6+
//@ run-pass
47

58
pub fn main() {
69
let foo: isize = 1;

0 commit comments

Comments
 (0)