2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
2020-06-11 17:08:53 -05:00
|
|
|
// gate-test-const_precise_live_drops
|
|
|
|
|
|
|
|
#![feature(const_precise_live_drops)]
|
|
|
|
|
|
|
|
const _: Vec<i32> = {
|
|
|
|
let vec_tuple = (Vec::new(),);
|
|
|
|
vec_tuple.0
|
|
|
|
};
|
|
|
|
|
|
|
|
const _: Vec<i32> = {
|
|
|
|
let x: Result<_, Vec<i32>> = Ok(Vec::new());
|
|
|
|
match x {
|
|
|
|
Ok(x) | Err(x) => x,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {}
|