Test for unsafe trait

This commit is contained in:
Diana 2020-05-01 11:49:51 -04:00
parent 6833183ab4
commit ebff5762e9

View file

@ -869,4 +869,15 @@ fn func(foo: i32) { if true { <|>foo; }; }
&[r#"pub(crate) async unsafe extern "C" fn foo()"#], &[r#"pub(crate) async unsafe extern "C" fn foo()"#],
); );
} }
#[test]
fn test_hover_trait_show_qualifiers() {
check_hover_result(
"
//- /lib.rs
unsafe trait foo<|>() {}
",
&["unsafe trait foo"],
);
}
} }