We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e525239 commit 1d4602eCopy full SHA for 1d4602e
crates/ide/src/highlight_related.rs
@@ -816,24 +816,22 @@ mod tests {
816
check(
817
r#"
818
fn foo() {
819
- unsafe fn this_is_unsafe_function() {
820
- }
+ unsafe fn this_is_unsafe_function() {}
821
822
-
823
unsa$0fe {
824
//^^^^^^
825
let raw_ptr = &42 as *const i32;
826
let val = *raw_ptr;
827
//^^^^^^^^
828
+
829
let mut_ptr = &mut 5 as *mut i32;
830
*mut_ptr = 10;
831
832
833
this_is_unsafe_function();
834
//^^^^^^^^^^^^^^^^^^^^^^^^^
835
}
836
837
838
"#,
839
);
0 commit comments