1 // Regression test for the ICE described in #86721.
3 // revisions: rev1 rev2
4 #![cfg_attr(any(), rev1, rev2)]
9 const U: usize = return;
10 //[rev1]~^ ERROR: return statement outside of function body [E0572]
15 fn foo(a: [(); return]);
16 //[rev2]~^ ERROR: return statement outside of function body [E0572]