mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00:00
Added test for spurious cannot borrow immutable item error with a closure
This commit is contained in:
parent
347f631325
commit
c3459b0c9c
@ -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) { }
|
||||
|
Loading…
Reference in New Issue
Block a user