rust/tests/ui/lint/unused/auxiliary/must-use-foreign.rs
2024-02-16 20:02:50 +00:00

13 lines
193 B
Rust

//@ edition:2021
use std::future::Future;
pub struct Manager;
impl Manager {
#[must_use]
pub async fn new() -> (Self, impl Future<Output = ()>) {
(Manager, async {})
}
}