2023-07-02 14:35:19 +02:00
|
|
|
error: an array of `Range` that is only one element
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:26:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | [0..200];
|
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::single-range-in-vec-init` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::single_range_in_vec_init)]`
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0..200];
|
|
|
|
|
LL + (0..200).collect::<std::vec::Vec<i32>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted an array of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0..200];
|
|
|
|
|
LL + [0; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: a `Vec` of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:28:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | vec![0..200];
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0..200];
|
|
|
|
|
LL + (0..200).collect::<std::vec::Vec<i32>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted a `Vec` of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0..200];
|
|
|
|
|
LL + vec![0; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: an array of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:30:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | [0u8..200];
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0u8..200];
|
|
|
|
|
LL + (0u8..200).collect::<std::vec::Vec<u8>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted an array of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0u8..200];
|
|
|
|
|
LL + [0u8; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: an array of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:32:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | [0usize..200];
|
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0usize..200];
|
|
|
|
|
LL + (0usize..200).collect::<std::vec::Vec<usize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted an array of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0usize..200];
|
|
|
|
|
LL + [0usize; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: an array of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:34:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | [0..200usize];
|
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0..200usize];
|
|
|
|
|
LL + (0..200usize).collect::<std::vec::Vec<usize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted an array of len 200usize, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0..200usize];
|
|
|
|
|
LL + [0; 200usize];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: a `Vec` of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:36:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | vec![0u8..200];
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0u8..200];
|
|
|
|
|
LL + (0u8..200).collect::<std::vec::Vec<u8>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted a `Vec` of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0u8..200];
|
|
|
|
|
LL + vec![0u8; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: a `Vec` of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:38:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | vec![0usize..200];
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0usize..200];
|
|
|
|
|
LL + (0usize..200).collect::<std::vec::Vec<usize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted a `Vec` of len 200, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0usize..200];
|
|
|
|
|
LL + vec![0usize; 200];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: a `Vec` of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:40:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | vec![0..200usize];
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0..200usize];
|
|
|
|
|
LL + (0..200usize).collect::<std::vec::Vec<usize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
help: if you wanted a `Vec` of len 200usize, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0..200usize];
|
|
|
|
|
LL + vec![0; 200usize];
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: an array of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:43:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | [0..200isize];
|
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - [0..200isize];
|
|
|
|
|
LL + (0..200isize).collect::<std::vec::Vec<isize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: a `Vec` of `Range` that is only one element
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/single_range_in_vec_init.rs:45:5
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
|
LL | vec![0..200isize];
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: if you wanted a `Vec` that contains the entire range, try
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - vec![0..200isize];
|
|
|
|
|
LL + (0..200isize).collect::<std::vec::Vec<isize>>();
|
|
|
|
|
|
|
2023-07-02 14:35:19 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|
|