about summary refs log tree commit diff
path: root/tests/ui/static/safe-extern-statics-mut.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/safe-extern-statics-mut.rs')
-rw-r--r--tests/ui/static/safe-extern-statics-mut.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/ui/static/safe-extern-statics-mut.rs b/tests/ui/static/safe-extern-statics-mut.rs
index 05a1bee8891..4dfcd41b73c 100644
--- a/tests/ui/static/safe-extern-statics-mut.rs
+++ b/tests/ui/static/safe-extern-statics-mut.rs
@@ -10,8 +10,6 @@ extern "C" {
 fn main() {
     let b = B; //~ ERROR use of mutable static is unsafe
     let rb = &B; //~ ERROR use of mutable static is unsafe
-    //~^ WARN shared reference to mutable static is discouraged [static_mut_refs]
     let xb = XB; //~ ERROR use of mutable static is unsafe
     let xrb = &XB; //~ ERROR use of mutable static is unsafe
-    //~^ WARN shared reference to mutable static is discouraged [static_mut_refs]
 }