mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:06:38 +00:00
14 lines
256 B
Rust
14 lines
256 B
Rust
// 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 ()),
|
|
//~^ ERROR: type annotations needed
|
|
T: FnMut(&'b ()),
|
|
{
|
|
}
|
|
|
|
fn main() {}
|