diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-52533.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-52533.rs b/src/test/ui/issues/issue-52533.rs new file mode 100644 index 000000000..bb9a1911f --- /dev/null +++ b/src/test/ui/issues/issue-52533.rs @@ -0,0 +1,7 @@ +fn foo(_: impl for<'a> FnOnce(&'a u32, &u32) -> &'a u32) { +} + +fn main() { + foo(|a, b| b) + //~^ ERROR lifetime may not live long enough +} |