summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/must-use-foreign.rs
blob: 21a1105856218156707733278af32023d689a17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// edition:2021
// aux-build:must-use-foreign.rs
// check-pass

extern crate must_use_foreign;

use must_use_foreign::Manager;

async fn async_main() {
    Manager::new().await.1.await;
}

fn main() {
    let _ = async_main();
}