2023-02-16 18:12:11 +00:00
|
|
|
error: collection is never read
|
|
|
|
--> $DIR/collection_is_never_read.rs:21:5
|
|
|
|
|
|
|
|
|
LL | let mut x = HashMap::new(); // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::collection-is-never-read` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: collection is never read
|
|
|
|
--> $DIR/collection_is_never_read.rs:60:5
|
|
|
|
|
|
|
|
|
LL | let mut x = vec![1, 2, 3]; // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
|
|
|
--> $DIR/collection_is_never_read.rs:75:5
|
|
|
|
|
|
|
|
|
LL | let mut x = HashMap::new(); // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
|
|
|
--> $DIR/collection_is_never_read.rs:80:5
|
|
|
|
|
|
|
|
|
LL | let mut x = HashMap::new(); // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:88:5
|
2023-02-16 18:12:11 +00:00
|
|
|
|
|
|
|
|
LL | let mut x = vec![1, 2, 3]; // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:94:5
|
2023-02-16 18:12:11 +00:00
|
|
|
|
|
|
|
|
LL | let mut x = vec![1, 2, 3]; // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-02-28 22:01:48 +00:00
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:101:5
|
|
|
|
|
|
|
|
|
LL | let mut x = vec![1, 2, 3]; // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
|
|
|
--> $DIR/collection_is_never_read.rs:118:5
|
2023-02-28 22:01:48 +00:00
|
|
|
|
|
|
|
|
LL | let mut x = HashSet::new(); // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-02-28 22:08:15 +00:00
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:132:5
|
2023-02-28 22:08:15 +00:00
|
|
|
|
|
|
|
|
LL | let x = vec![1, 2, 3]; // WARNING
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-04-09 11:25:50 +00:00
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:168:5
|
2023-04-09 11:25:50 +00:00
|
|
|
|
|
|
|
|
LL | let mut s = String::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: collection is never read
|
2023-03-12 14:56:14 +00:00
|
|
|
--> $DIR/collection_is_never_read.rs:181:5
|
2023-04-09 11:25:50 +00:00
|
|
|
|
|
|
|
|
LL | let mut s = String::from("Hello, World!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-03-12 14:56:14 +00:00
|
|
|
error: aborting due to 11 previous errors
|
2023-02-16 18:12:11 +00:00
|
|
|
|