]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/issue-13352.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / never_type / issue-13352.rs
1 fn foo(_: Box<dyn FnMut()>) {}
2
3 fn main() {
4     foo(loop {
5         std::process::exit(0);
6     });
7     2_usize + (loop {});
8     //~^ ERROR E0277
9 }