2017-02-07 21:05:30 +01:00
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:24:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
24 | on_slice(&vec![]);
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^ help: you can use a slice directly: `&[]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D useless-vec` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:27:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 17:07:49 +02:00
|
|
|
27 | on_slice(&vec![1, 2]);
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:30:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 17:07:49 +02:00
|
|
|
30 | on_slice(&vec ![1, 2]);
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:33:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 17:07:49 +02:00
|
|
|
33 | on_slice(&vec!(1, 2));
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:36:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 17:07:49 +02:00
|
|
|
36 | on_slice(&vec![1; 2]);
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^ help: you can use a slice directly: `&[1; 2]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: useless use of `vec!`
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/vec.rs:49:14
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 17:07:49 +02:00
|
|
|
49 | for a in vec![1, 2, 3] {
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2, 3]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|