summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-101284.rs
blob: 1381d4f172724476f38f25fd5db5bb2748232cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass
// edition:2021
#![deny(rust_2021_compatibility)]

pub struct Warns {
    // `Arc` has significant drop
    _significant_drop: std::sync::Arc<()>,
    field: String,
}

pub fn test(w: Warns) {
    _ = || drop(w.field);
}

fn main() {}