minor: format
This commit is contained in:
parent
9031c86009
commit
2ec065062a
1 changed files with 4 additions and 6 deletions
|
|
@ -816,24 +816,22 @@ mod tests {
|
|||
check(
|
||||
r#"
|
||||
fn foo() {
|
||||
unsafe fn this_is_unsafe_function() {
|
||||
}
|
||||
unsafe fn this_is_unsafe_function() {}
|
||||
|
||||
|
||||
unsa$0fe {
|
||||
//^^^^^^
|
||||
let raw_ptr = &42 as *const i32;
|
||||
let val = *raw_ptr;
|
||||
//^^^^^^^^
|
||||
|
||||
|
||||
let mut_ptr = &mut 5 as *mut i32;
|
||||
*mut_ptr = 10;
|
||||
//^^^^^^^^
|
||||
|
||||
|
||||
this_is_unsafe_function();
|
||||
//^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue