rust/tests/ui/waker_clone_wake.stderr

18 lines
595 B
Plaintext
Raw Normal View History

error: cloning a `Waker` only to wake it
2024-02-17 06:16:29 -06:00
--> tests/ui/waker_clone_wake.rs:15:5
|
LL | cx.waker().clone().wake();
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `cx.waker().wake_by_ref()`
|
= note: `-D clippy::waker-clone-wake` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::waker_clone_wake)]`
2023-10-25 08:15:29 -05:00
error: cloning a `Waker` only to wake it
2024-02-17 06:16:29 -06:00
--> tests/ui/waker_clone_wake.rs:17:5
2023-10-25 08:15:29 -05:00
|
LL | mac!(cx).clone().wake();
| ^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `mac!(cx).wake_by_ref()`
error: aborting due to 2 previous errors