summaryrefslogtreecommitdiffstats
path: root/tests/ui/loops/loop-break-unsize.rs
blob: 974c63cea85e4ae9f0096e7833f30918ec538091 (plain)
1
2
3
4
5
6
7
8
// Regression test for #62312
// check-pass

fn main() {
    let _ = loop {
        break Box::new(()) as Box<dyn Send>;
    };
}