]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-54239-private-type-triggers-lint.rs
Rollup merge of #105641 - Amanieu:btree_cursor, r=m-ou-se
[rust.git] / tests / ui / async-await / issue-54239-private-type-triggers-lint.rs
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() {}