mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Fix code suggestion in test
This commit is contained in:
parent
0f257df31a
commit
bc4c67dd0a
@ -81,11 +81,11 @@ impl FuncContainerOuter {
|
|||||||
fn run(&self) {
|
fn run(&self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.container).f1(1); //~ ERROR no method named `f1` found
|
(*self.container).f1(1); //~ ERROR no method named `f1` found
|
||||||
//~^ NOTE use `(*self.container.f1)(...)`
|
//~^ NOTE use `((*self.container).f1)(...)`
|
||||||
(*self.container).f2(1); //~ ERROR no method named `f2` found
|
(*self.container).f2(1); //~ ERROR no method named `f2` found
|
||||||
//~^ NOTE use `(*self.container.f2)(...)`
|
//~^ NOTE use `((*self.container).f2)(...)`
|
||||||
(*self.container).f3(1); //~ ERROR no method named `f3` found
|
(*self.container).f3(1); //~ ERROR no method named `f3` found
|
||||||
//~^ NOTE use `(*self.container.f3)(...)`
|
//~^ NOTE use `((*self.container).f3)(...)`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user