Skip to content

Commit ebff576

Browse files
committed
Test for unsafe trait
1 parent 6833183 commit ebff576

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

crates/ra_ide/src/hover.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,4 +869,15 @@ fn func(foo: i32) { if true { <|>foo; }; }
869869
&[r#"pub(crate) async unsafe extern "C" fn foo()"#],
870870
);
871871
}
872+
873+
#[test]
874+
fn test_hover_trait_show_qualifiers() {
875+
check_hover_result(
876+
"
877+
//- /lib.rs
878+
unsafe trait foo<|>() {}
879+
",
880+
&["unsafe trait foo"],
881+
);
882+
}
872883
}

0 commit comments

Comments
 (0)