Skip to content

Commit c3459b0

Browse files
committed
Added test for spurious cannot borrow immutable item error with a closure
1 parent 347f631 commit c3459b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/run-pass/issue-16671.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//compile-flags: -Z borrowck=compare -Z emit-end-regions
12+
1113
#![deny(warnings)]
1214

1315
fn foo<F: FnOnce()>(_f: F) { }

0 commit comments

Comments
 (0)