mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
13 lines
224 B
Rust
13 lines
224 B
Rust
// 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;
|
|
};
|
|
}
|