Skip to content

Commit

Permalink
Add test for issue-54239
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 9, 2020
1 parent 564758c commit af0c44c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/ui/async-await/issue-54239-private-type-triggers-lint.rs
@@ -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() {}

0 comments on commit af0c44c

Please sign in to comment.