2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2017-05-27 13:20:17 -05:00
|
|
|
fn main() {
|
|
|
|
// Check that the tail statement in the body unifies with something
|
|
|
|
for _ in 0..3 {
|
2019-12-21 20:43:13 -06:00
|
|
|
// `()` is fine to zero-initialize as it is zero sized and inhabited.
|
|
|
|
unsafe { std::mem::zeroed() }
|
2017-05-27 13:20:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Check that the tail statement in the body can be unit
|
|
|
|
for _ in 0..3 {
|
|
|
|
()
|
|
|
|
}
|
|
|
|
}
|