mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Test for unsafe trait
This commit is contained in:
parent
6833183ab4
commit
ebff5762e9
1 changed files with 11 additions and 0 deletions
|
@ -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"],
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue