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

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 {})
}
}