diff options
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index 39cd74ac3..43f554a29 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -384,9 +384,11 @@ impl HasUnsafeFn { | |||
384 | } | 384 | } |
385 | 385 | ||
386 | fn main() { | 386 | fn main() { |
387 | let x = &5 as *usize; | ||
387 | unsafe { | 388 | unsafe { |
388 | unsafe_fn(); | 389 | unsafe_fn(); |
389 | HasUnsafeFn.unsafe_method(); | 390 | HasUnsafeFn.unsafe_method(); |
391 | let y = *x; | ||
390 | } | 392 | } |
391 | } | 393 | } |
392 | "# | 394 | "# |