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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
193 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 {})
}
}