2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2017-05-27 20:20:17 +02:00
|
|
|
fn main() {
|
|
|
|
|
// Check that the tail statement in the body unifies with something
|
|
|
|
|
for _ in 0..3 {
|
2019-07-04 11:24:56 -04:00
|
|
|
#[allow(deprecated)]
|
2017-05-27 20:20:17 +02:00
|
|
|
unsafe { std::mem::uninitialized() }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Check that the tail statement in the body can be unit
|
|
|
|
|
for _ in 0..3 {
|
|
|
|
|
()
|
|
|
|
|
}
|
|
|
|
|
}
|