]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/same_item_push.stderr
Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors
[rust.git] / src / tools / clippy / tests / ui / same_item_push.stderr
1 error: it looks like the same item is being pushed into this Vec
2   --> $DIR/same_item_push.rs:23:9
3    |
4 LL |         vec.push(item);
5    |         ^^^
6    |
7    = note: `-D clippy::same-item-push` implied by `-D warnings`
8    = help: try using vec![item;SIZE] or vec.resize(NEW_SIZE, item)
9
10 error: it looks like the same item is being pushed into this Vec
11   --> $DIR/same_item_push.rs:29:9
12    |
13 LL |         vec.push(item);
14    |         ^^^
15    |
16    = help: try using vec![item;SIZE] or vec.resize(NEW_SIZE, item)
17
18 error: it looks like the same item is being pushed into this Vec
19   --> $DIR/same_item_push.rs:34:9
20    |
21 LL |         vec.push(13);
22    |         ^^^
23    |
24    = help: try using vec![13;SIZE] or vec.resize(NEW_SIZE, 13)
25
26 error: it looks like the same item is being pushed into this Vec
27   --> $DIR/same_item_push.rs:39:9
28    |
29 LL |         vec.push(VALUE);
30    |         ^^^
31    |
32    = help: try using vec![VALUE;SIZE] or vec.resize(NEW_SIZE, VALUE)
33
34 error: it looks like the same item is being pushed into this Vec
35   --> $DIR/same_item_push.rs:45:9
36    |
37 LL |         vec.push(item);
38    |         ^^^
39    |
40    = help: try using vec![item;SIZE] or vec.resize(NEW_SIZE, item)
41
42 error: aborting due to 5 previous errors
43