rust/tests/ui/issues/issue-16671.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
155 B
Rust
Raw Normal View History

// run-pass
#![deny(warnings)]
fn foo<F: FnOnce()>(_f: F) { }
fn main() {
2017-05-25 02:43:46 +00:00
let mut var = Vec::new();
foo(move|| {
var.push(1);
});
2014-08-22 17:16:26 +00:00
}