rust/src/test/ui/issues/issue-52533-1.rs
2018-12-25 21:08:33 -07:00

12 lines
304 B
Rust

#![allow(warnings)]
struct Foo<'a, 'b, T: 'a + 'b> { x: &'a T, y: &'b T }
fn gimme(_: impl for<'a, 'b, 'c> FnOnce(&'a Foo<'a, 'b, u32>,
&'a Foo<'a, 'c, u32>) -> &'a Foo<'a, 'b, u32>) { }
fn main() {
gimme(|x, y| y)
//~^ ERROR mismatched types [E0308]
}