2 #![allow(non_upper_case_globals)]
4 // Check that the 'static bound on a proc influences lifetimes of
5 // region variables contained within (otherwise, region inference will
6 // give `x` a very short lifetime).
8 // pretty-expanded FIXME #23616
11 fn foo<F:FnOnce()+'static>(_: F) {}