summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-93648.rs
blob: ec2249ca592b586e4f18d269b7ea1158a0910184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
// [drop_tracking] compile-flags: -Zdrop-tracking
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
// edition:2021
// build-pass

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