diff --git a/misc/core-derive/tests/test.rs b/misc/core-derive/tests/test.rs index 2f4ff803..8fae16ca 100644 --- a/misc/core-derive/tests/test.rs +++ b/misc/core-derive/tests/test.rs @@ -130,11 +130,11 @@ fn custom_polling() { } impl Foo { - fn foo(&mut self) -> std::task::Poll> { std::task::Poll::Pending } + fn foo(&mut self, _: &mut std::task::Context) -> std::task::Poll> { std::task::Poll::Pending } } #[allow(dead_code)] - fn foo(_: &mut std::task::Context) { + fn foo() { require_net_behaviour::>(); } } @@ -186,11 +186,11 @@ fn custom_event_and_polling() { } impl Foo { - fn foo(&mut self) -> std::task::Poll> { std::task::Poll::Pending } + fn foo(&mut self, _: &mut std::task::Context) -> std::task::Poll> { std::task::Poll::Pending } } #[allow(dead_code)] - fn foo(_: &mut std::task::Context) { + fn foo() { require_net_behaviour::>(); } }