summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-93648.rs
blob: 4ce3ac1e8746030d3ff3caea1e25aa27d8d41267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// edition:2021
// build-pass
// compile-flags: -Zdrop-tracking

fn main() {
    let _ = async {
        let mut s = (String::new(),);
        s.0.push_str("abc");
        std::mem::drop(s);
        async {}.await;
    };
}