Add missing self param to test

This commit is contained in:
Paul Daniel Faria 2020-05-24 15:31:33 -04:00
parent c622551ec2
commit 3df0f9ce7e

View file

@ -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;
}