Fix tests

This commit is contained in:
Pyriphlegethon 2015-09-30 18:00:14 +02:00
parent 52aee99f6d
commit c5ab8d62e3
2 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,7 @@ impl Unrelated {
#[deny(needless_range_loop, explicit_iter_loop, iter_next_loop, reverse_range_loop, explicit_counter_loop)]
#[deny(unused_collect)]
#[allow(linkedlist,shadow_unrelated)]
#[allow(linkedlist,shadow_unrelated,unnecessary_mut_passed)]
fn main() {
let mut vec = vec![1, 2, 3, 4];
let vec2 = vec![1, 2, 3, 4];

View File

@ -1,9 +1,12 @@
#![feature(plugin)]
#![plugin(clippy)]
#![allow(unused_variable)]
fn takes_an_immutable_reference(a: &i32) {
}
fn takes_a_mutable_reference(a: &mut i32) {
}
@ -32,7 +35,7 @@ fn main() {
// Functions
takes_an_immutable_reference(&42);
takes_a_mutable_reference(&mut 42);
let mut a = &mut 42;
let a = &mut 42;
takes_an_immutable_reference(a);
// Methods