1 error: useless use of `vec!`
4 24 | on_slice(&vec![]);
5 | ^^^^^^^ help: you can use a slice directly `&[]`
7 note: lint level defined here
10 4 | #![deny(useless_vec)]
13 error: useless use of `vec!`
16 27 | on_slice(&vec![1, 2]);
17 | ^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
19 error: useless use of `vec!`
22 30 | on_slice(&vec ![1, 2]);
23 | ^^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
25 error: useless use of `vec!`
28 33 | on_slice(&vec!(1, 2));
29 | ^^^^^^^^^^^ help: you can use a slice directly `&[1, 2]`
31 error: useless use of `vec!`
34 36 | on_slice(&vec![1; 2]);
35 | ^^^^^^^^^^^ help: you can use a slice directly `&[1; 2]`
37 error: useless use of `vec!`
40 49 | for a in vec![1, 2, 3] {
41 | ^^^^^^^^^^^^^ help: you can use a slice directly `&[1, 2, 3]`
43 error: aborting due to 6 previous errors