2023-03-10 03:53:50 -06:00
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:21:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = HashMap::new();
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::collection-is-never-read` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::collection_is_never_read)]`
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:62:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = vec![1, 2, 3];
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:78:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = HashMap::new();
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:84:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = HashMap::new();
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:93:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = vec![1, 2, 3];
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:100:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = vec![1, 2, 3];
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:107:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = vec![1, 2, 3];
|
2023-04-11 08:31:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:115:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = vec![1, 2, 3];
|
2023-04-11 08:31:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:133:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = HashSet::new();
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:148:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let x = vec![1, 2, 3];
|
2023-03-10 03:53:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-04-11 08:31:08 -05:00
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:184:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::BTreeMap::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:188:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::BTreeSet::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:192:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::BinaryHeap::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:196:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::HashMap::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:200:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::HashSet::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:204:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::LinkedList::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:208:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = Some(true);
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:212:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = String::from("hello");
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:216:5
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = Vec::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
|
|
error: collection is never read
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/collection_is_never_read.rs:221:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let mut x = std::collections::VecDeque::new();
|
2023-04-23 06:03:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-11 08:31:08 -05:00
|
|
|
|
2023-04-23 06:03:09 -05:00
|
|
|
error: aborting due to 20 previous errors
|
2023-03-10 03:53:50 -06:00
|
|
|
|