]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-101284.rs
Auto merge of #98457 - japaric:gh98378, r=m-ou-se
[rust.git] / src / test / ui / lint / issue-101284.rs
1 // check-pass
2 // edition:2021
3 #![deny(rust_2021_compatibility)]
4
5 pub struct Warns {
6     // `Arc` has significant drop
7     _significant_drop: std::sync::Arc<()>,
8     field: String,
9 }
10
11 pub fn test(w: Warns) {
12     _ = || drop(w.field);
13 }
14
15 fn main() {}