1 error: useless use of `vec!`
4 24 | on_slice(&vec![]);
5 | ^^^^^^^ help: you can use a slice directly `&[]`
7 = note: `-D useless-vec` implied by `-D warnings`
9 error: useless use of `vec!`
12 27 | on_slice(&vec![1, 2]);
13 | ^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
15 = note: `-D useless-vec` implied by `-D warnings`
17 error: useless use of `vec!`
20 30 | on_slice(&vec ![1, 2]);
21 | ^^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
23 = note: `-D useless-vec` implied by `-D warnings`
25 error: useless use of `vec!`
28 33 | on_slice(&vec!(1, 2));
29 | ^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
31 = note: `-D useless-vec` implied by `-D warnings`
33 error: useless use of `vec!`
36 36 | on_slice(&vec![1; 2]);
37 | ^^^^^^^^^^^ help: you can use a slice directly `&[1; 2]`
39 = note: `-D useless-vec` implied by `-D warnings`
41 error: useless use of `vec!`
44 49 | for a in vec![1, 2, 3] {
45 | ^^^^^^^^^^^^^ help: you can use a slice directly `&[1, 2, 3]`
47 = note: `-D useless-vec` implied by `-D warnings`
49 error: aborting due to previous error(s)
51 error: Could not compile `clippy_tests`.
53 To learn more, run the command again with --verbose.