2022-10-01 05:19:31 -05:00
|
|
|
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
|
|
|
|
// [drop_tracking] compile-flags: -Zdrop-tracking
|
|
|
|
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
|
2022-07-01 00:05:00 -05:00
|
|
|
// build-pass
|
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn from_config(_: Config) {}
|
|
|
|
|
|
|
|
async fn foo() {
|
|
|
|
from_config(Config {
|
|
|
|
nickname: None,
|
|
|
|
..Default::default()
|
|
|
|
})
|
|
|
|
.await;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Default)]
|
|
|
|
struct Config {
|
|
|
|
nickname: Option<Box<u8>>,
|
|
|
|
}
|