Added test for spurious cannot borrow immutable item error with a closure

This commit is contained in:
David Wood 2017-11-30 23:16:17 +00:00
parent 347f631325
commit c3459b0c9c
No known key found for this signature in database
GPG Key ID: 01760B4F9F53F154

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//compile-flags: -Z borrowck=compare -Z emit-end-regions
#![deny(warnings)]
fn foo<F: FnOnce()>(_f: F) { }