summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs
blob: b476dd50cc986486e62d601ac7f3ea207a06ae73 (plain)
1
2
3
4
5
6
7
#![feature(closure_lifetime_binder)]
fn main() {
    for<> |_: &'a ()| -> () {};
    //~^ ERROR use of undeclared lifetime name `'a`
    for<'a> |_: &'b ()| -> () {};
    //~^ ERROR use of undeclared lifetime name `'b`
}