mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Add missing self param to test
This commit is contained in:
parent
c622551ec2
commit
3df0f9ce7e
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ fn missing_unsafe_diagnostic_with_unsafe_method_call() {
|
|||
struct HasUnsafe;
|
||||
|
||||
impl HasUnsafe {
|
||||
unsafe fn unsafe_fn() {
|
||||
unsafe fn unsafe_fn(&self) {
|
||||
let x = &5 as *const usize;
|
||||
let y = *x;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue