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

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

7 lines
163 B
Rust
Raw Normal View History

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