rust/clippy_tests/examples/needless_borrowed_ref.rs

10 lines
186 B
Rust
Raw Normal View History

2017-06-29 06:46:07 -05:00
#![feature(plugin)]
#![plugin(clippy)]
#[warn(needless_borrowed_reference)]
fn main() {
let mut v = Vec::<String>::new();
let _ = v.iter_mut().filter(|&ref a| a.is_empty());
}