summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/auxiliary/must-use-foreign.rs
blob: f773f09c3821b2a86a68912224e854d0ad7205a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// edition:2021

use std::future::Future;

pub struct Manager;

impl Manager {
    #[must_use]
    pub async fn new() -> (Self, impl Future<Output = ()>) {
        (Manager, async {})
    }
}