diff options
| author | bors <bors@rust-lang.org> | 2024-09-20 17:25:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-20 17:25:34 +0000 |
| commit | 5ba6db1b648d93fbbab4ae0466e40db682fa45fc (patch) | |
| tree | c9c5732d1f0b4eee1f04aa23d4ff945545d2a698 /tests/ui/self | |
| parent | fb46739014564a3c709c43e1429a6a5d71c97e26 (diff) | |
| parent | 3b0ce1bc33d30d7d116ee9af60df873e04bd74dc (diff) | |
| download | rust-5ba6db1b648d93fbbab4ae0466e40db682fa45fc.tar.gz rust-5ba6db1b648d93fbbab4ae0466e40db682fa45fc.zip | |
Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors
Disallow hidden references to mutable static Closes #123060 Tracking: - https://github.com/rust-lang/rust/issues/123758
Diffstat (limited to 'tests/ui/self')
| -rw-r--r-- | tests/ui/self/where-for-self.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/self/where-for-self.rs b/tests/ui/self/where-for-self.rs index 9b4e8325664..d31bb1f22c4 100644 --- a/tests/ui/self/where-for-self.rs +++ b/tests/ui/self/where-for-self.rs @@ -2,6 +2,8 @@ // Test that we can quantify lifetimes outside a constraint (i.e., including // the self type) in a where clause. +// FIXME(static_mut_refs): this could use an atomic +#![allow(static_mut_refs)] static mut COUNT: u32 = 1; |
