]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/vec.stderr
Rollup merge of #71785 - reitermarkus:cfg-attribute, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / vec.stderr
1 error: useless use of `vec!`
2   --> $DIR/vec.rs:23:14
3    |
4 LL |     on_slice(&vec![]);
5    |              ^^^^^^^ help: you can use a slice directly: `&[]`
6    |
7    = note: `-D clippy::useless-vec` implied by `-D warnings`
8
9 error: useless use of `vec!`
10   --> $DIR/vec.rs:26:14
11    |
12 LL |     on_slice(&vec![1, 2]);
13    |              ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
14
15 error: useless use of `vec!`
16   --> $DIR/vec.rs:29:14
17    |
18 LL |     on_slice(&vec![1, 2]);
19    |              ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
20
21 error: useless use of `vec!`
22   --> $DIR/vec.rs:32:14
23    |
24 LL |     on_slice(&vec!(1, 2));
25    |              ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
26
27 error: useless use of `vec!`
28   --> $DIR/vec.rs:35:14
29    |
30 LL |     on_slice(&vec![1; 2]);
31    |              ^^^^^^^^^^^ help: you can use a slice directly: `&[1; 2]`
32
33 error: useless use of `vec!`
34   --> $DIR/vec.rs:48:14
35    |
36 LL |     for a in vec![1, 2, 3] {
37    |              ^^^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2, 3]`
38
39 error: aborting due to 6 previous errors
40