1error: calls to `push` immediately after creation 2 --> $DIR/vec_init_then_push.rs:5:5 3 | 4LL | / let mut def_err: Vec<u32> = Default::default(); 5LL | | def_err.push(0); 6 | |____________________^ help: consider using the `vec![]` macro: `let mut def_err: Vec<u32> = vec![..];` 7 | 8 = note: `-D clippy::vec-init-then-push` implied by `-D warnings` 9 10error: calls to `push` immediately after creation 11 --> $DIR/vec_init_then_push.rs:8:5 12 | 13LL | / let mut new_err = Vec::<u32>::new(); 14LL | | new_err.push(1); 15 | |____________________^ help: consider using the `vec![]` macro: `let mut new_err = vec![..];` 16 17error: calls to `push` immediately after creation 18 --> $DIR/vec_init_then_push.rs:11:5 19 | 20LL | / let mut cap_err = Vec::with_capacity(2); 21LL | | cap_err.push(0); 22LL | | cap_err.push(1); 23LL | | cap_err.push(2); 24 | |____________________^ help: consider using the `vec![]` macro: `let mut cap_err = vec![..];` 25 26error: calls to `push` immediately after creation 27 --> $DIR/vec_init_then_push.rs:23:5 28 | 29LL | / new_err = Vec::new(); 30LL | | new_err.push(0); 31 | |____________________^ help: consider using the `vec![]` macro: `new_err = vec![..];` 32 33error: aborting due to 4 previous errors 34 35