]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-forbid-static-unsafe-interior.rs
auto merge of #15421 : catharsis/rust/doc-ffi-minor-fixes, r=alexcrichton
[rust.git] / src / test / compile-fail / borrowck-forbid-static-unsafe-interior.rs
index 9939fc791907d0fb166247c34f1b86e7563d91aa..1c7516ef7e2bfb2e3189c5e276f4f18d998d7a46 100644 (file)
@@ -32,7 +32,7 @@ enum UnsafeEnum<T> {
 static STATIC2: Unsafe<int> = Unsafe{value: 1, marker1: marker::InvariantType};
 static STATIC3: MyUnsafe<int> = MyUnsafe{value: STATIC2};
 
-static STATIC4: &'static Unsafe<int> = &'static STATIC2;
+static STATIC4: &'static Unsafe<int> = &STATIC2;
 //~^ ERROR borrow of immutable static items with unsafe interior is not allowed
 
 struct Wrap<T> {