Add missing self param to test
This commit is contained in:
parent
c622551ec2
commit
3df0f9ce7e
@ -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…
x
Reference in New Issue
Block a user