rust/tests/ui/issues/issue-49919.rs

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

8 lines
207 B
Rust
Raw Normal View History

2019-07-11 00:58:09 +00:00
fn foo<'a, T: 'a>(t: T) -> Box<dyn Fn() -> &'a T + 'a> {
let foo: Box<dyn for <'c> Fn() -> &'c T> = Box::new(move || &t);
//~^ ERROR: binding for associated type
unimplemented!()
}
fn main() {}