Skip to content

Commit af0c44c

Browse files
committed
Add test for issue-54239
1 parent 564758c commit af0c44c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Regression test for #54239, shouldn't trigger lint.
2+
// check-pass
3+
// edition:2018
4+
5+
#![deny(missing_debug_implementations)]
6+
7+
struct DontLookAtMe(i32);
8+
9+
async fn secret() -> DontLookAtMe {
10+
DontLookAtMe(41)
11+
}
12+
13+
pub async fn looking() -> i32 { // Shouldn't trigger lint here.
14+
secret().await.0
15+
}
16+
17+
fn main() {}

0 commit comments

Comments
 (0)