rust/tests/ui/nll/issue-54189.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
236 B
Rust
Raw Normal View History

2019-06-20 15:19:11 +00:00
fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } }
//~^ ERROR binding for associated type `Output` references lifetime `'r`
//~| ERROR binding for associated type `Output` references lifetime `'r`
2019-06-20 15:19:11 +00:00
fn main() {
let f = bug();
}