Files
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
156 B
Rust
Raw Normal View History

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