1 // build-pass (FIXME(62277): could be check-pass?)
5 type Different<'a, 'b> = &'a mut (&'a (), &'b ());
6 type Same<'a> = Different<'a, 'a>;
8 fn with_closure_expecting_different<F>(_: F)
9 where F: for<'a, 'b> FnOnce(Different<'a, 'b>)
13 fn with_closure_expecting_different_anon<F>(_: F)
14 where F: FnOnce(Different<'_, '_>)
18 fn supplying_nothing_expecting_anon() {
19 with_closure_expecting_different_anon(|x: Different| {
23 fn supplying_nothing_expecting_named() {
24 with_closure_expecting_different(|x: Different| {
28 fn supplying_underscore_expecting_anon() {
29 with_closure_expecting_different_anon(|x: Different<'_, '_>| {
33 fn supplying_underscore_expecting_named() {
34 with_closure_expecting_different(|x: Different<'_, '_>| {