2021-06-17 07:48:19 -05:00
|
|
|
// Regression test for the invalid suggestion in #85735 (the
|
|
|
|
// underlying issue #21974 still exists here).
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
impl<'a, 'b, T> Foo for T
|
|
|
|
where
|
|
|
|
T: FnMut(&'a ()),
|
2022-06-25 12:42:23 -05:00
|
|
|
//~^ ERROR: type annotations needed
|
2021-06-17 07:48:19 -05:00
|
|
|
T: FnMut(&'b ()),
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|