error: unused `Call` that must be used --> tests/ui/must_use.rs:4:5 | 4 | call("p.m", ()); | ^^^^^^^^^^^^^^^ | = note: await the call to send it note: the lint level is defined here --> tests/ui/must_use.rs:1:9 | 1 | #![deny(unused_must_use)] | ^^^^^^^^^^^^^^^ help: use `let _ = ...` to ignore the resulting value | 4 | let _ = call("p.m", ()); | +++++++ error: unused `TypedCall` that must be used --> tests/ui/must_use.rs:5:5 | 5 | TypedCall::<()>::new(call("p.m", ())); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: await the call to send it help: use `let _ = ...` to ignore the resulting value | 5 | let _ = TypedCall::<()>::new(call("p.m", ())); | +++++++ error: unused `Lock` that must be used --> tests/ui/must_use.rs:6:5 | 6 | lock("/state/file"); | ^^^^^^^^^^^^^^^^^^^ | = note: await the lock to acquire it help: use `let _ = ...` to ignore the resulting value | 6 | let _ = lock("/state/file"); | +++++++ error: unused `EndpointCall` that must be used --> tests/ui/must_use.rs:7:5 | 7 | endpoint.call::<()>("m", ()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: await the endpoint call to send it help: use `let _ = ...` to ignore the resulting value | 7 | let _ = endpoint.call::<()>("m", ()); | +++++++ error: unused `Guard` that must be used --> tests/ui/must_use.rs:10:24 | 10 | fn dropped(g: Guard) { guard(g); } | ^^^^^^^^ | = note: bind the guard to hold the lock help: use `let _ = ...` to ignore the resulting value | 10 | fn dropped(g: Guard) { let _ = guard(g); } | +++++++