tests
This commit is contained in:
parent
5ba1556e0d
commit
630dff6ba7
9
src/test/ui/closures/binder/late-bound-in-body.rs
Normal file
9
src/test/ui/closures/binder/late-bound-in-body.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(closure_lifetime_binder)]
|
||||
|
||||
fn main() {
|
||||
let _ = for<'a> || -> () {
|
||||
let _: &'a bool = &true;
|
||||
};
|
||||
}
|
7
src/test/ui/closures/binder/nested-closures.rs
Normal file
7
src/test/ui/closures/binder/nested-closures.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(closure_lifetime_binder)]
|
||||
|
||||
fn main() {
|
||||
for<'a> || -> () { for<'c> |_: &'a ()| -> () {}; };
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user