rust/tests/ui/lint/unused/auxiliary/must-use-foreign.rs

13 lines
192 B
Rust
Raw Normal View History

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