diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs
index 2deee404cc..b9b3580223 100644
--- a/crates/ra_ide/src/syntax_highlighting/tests.rs
+++ b/crates/ra_ide/src/syntax_highlighting/tests.rs
@@ -281,6 +281,12 @@ impl HasUnsafeFn {
unsafe fn unsafe_method(&self) {}
}
+struct TypeForStaticMut {
+ a: u8
+}
+
+static mut global_mut: TypeForStaticMut = TypeForStaticMut { a: 0 };
+
fn main() {
let x = &5 as *const usize;
unsafe {
@@ -288,6 +294,7 @@ fn main() {
HasUnsafeFn.unsafe_method();
let y = *(x);
let z = -x;
+ let a = global_mut.a;
}
}
"#
diff --git a/crates/ra_ide/test_data/highlight_unsafe.html b/crates/ra_ide/test_data/highlight_unsafe.html
index b81b6f1c3b..7c519ef5e5 100644
--- a/crates/ra_ide/test_data/highlight_unsafe.html
+++ b/crates/ra_ide/test_data/highlight_unsafe.html
@@ -43,6 +43,12 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
unsafe fn unsafe_method(&self) {}
}
+struct TypeForStaticMut {
+ a: u8
+}
+
+static mut global_mut: TypeForStaticMut = TypeForStaticMut { a: 0 };
+
fn main() {
let x = &5 as *const usize;
unsafe {
@@ -50,5 +56,6 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
HasUnsafeFn.unsafe_method();
let y = *(x);
let z = -x;
+ let a = global_mut.a;
}
}
\ No newline at end of file