Add test for issue-54239

This commit is contained in:
Yuki Okushi 2020-03-09 09:11:40 +09:00
parent 564758c4c3
commit af0c44cb29
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1

View File

@ -0,0 +1,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() {}