diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 19:28:38 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-05 01:54:04 +0500 |
| commit | 066a281f60fd5071a50cf15a28ed40f15bef7563 (patch) | |
| tree | bcd7180a12756212b23681b15593e0da1a580df4 /tests/ui/const-ptr/pointer-address-stability.rs | |
| parent | 1549585f26881927ea8305e0724d2d1f1dc45ade (diff) | |
| download | rust-066a281f60fd5071a50cf15a28ed40f15bef7563.tar.gz rust-066a281f60fd5071a50cf15a28ed40f15bef7563.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/const-ptr/pointer-address-stability.rs')
| -rw-r--r-- | tests/ui/const-ptr/pointer-address-stability.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ui/const-ptr/pointer-address-stability.rs b/tests/ui/const-ptr/pointer-address-stability.rs index e330a4853ce..84a36e1ddf5 100644 --- a/tests/ui/const-ptr/pointer-address-stability.rs +++ b/tests/ui/const-ptr/pointer-address-stability.rs @@ -1,6 +1,9 @@ -//@ run-pass -// Issue #2040 +//! Check that taking the address of a stack variable with `&` +//! yields a stable and comparable pointer. +//! +//! Regression test for <https://github.com/rust-lang/rust/issues/2040>. +//@ run-pass pub fn main() { let foo: isize = 1; |
