2021-06-17 14:48:19 +02: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 10:42:23 -07:00
|
|
|
//~^ ERROR: type annotations needed
|
2021-06-17 14:48:19 +02:00
|
|
|
T: FnMut(&'b ()),
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|