]> git.lizzy.rs Git - rust.git/blob - tests/ui/same_item_push.stderr
Rollup merge of #5825 - giraffate:same_item_push, r=Manishearth
[rust.git] / 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:16:9
3    |
4 LL |         spaces.push(vec![b' ']);
5    |         ^^^^^^
6    |
7    = note: `-D clippy::same-item-push` implied by `-D warnings`
8    = help: try using vec![vec![b' '];SIZE] or spaces.resize(NEW_SIZE, vec![b' '])
9
10 error: it looks like the same item is being pushed into this Vec
11   --> $DIR/same_item_push.rs:22:9
12    |
13 LL |         vec2.push(item);
14    |         ^^^^
15    |
16    = help: try using vec![item;SIZE] or vec2.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:28:9
20    |
21 LL |         vec3.push(item);
22    |         ^^^^
23    |
24    = help: try using vec![item;SIZE] or vec3.resize(NEW_SIZE, item)
25
26 error: it looks like the same item is being pushed into this Vec
27   --> $DIR/same_item_push.rs:33:9
28    |
29 LL |         vec4.push(13);
30    |         ^^^^
31    |
32    = help: try using vec![13;SIZE] or vec4.resize(NEW_SIZE, 13)
33
34 error: aborting due to 4 previous errors
35