summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issue-54239-private-type-triggers-lint.rs
blob: 16cf7ad52e4f9a84eedad3abee777aaf98073d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Regression test for #54239, shouldn't trigger lint.
// check-pass
// edition:2018

#![deny(missing_debug_implementations)]

struct DontLookAtMe(i32);

async fn secret() -> DontLookAtMe {
    DontLookAtMe(41)
}

pub async fn looking() -> i32 { // Shouldn't trigger lint here.
    secret().await.0
}

fn main() {}