2019-06-29 10:23:15 -05:00
|
|
|
error: unused array of `S` that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:44:5
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | singleton();
|
2022-08-16 09:46:33 -05:00
|
|
|
| ^^^^^^^^^^^
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2019-06-29 10:23:15 -05:00
|
|
|
--> $DIR/must_use-array.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused array of `S` that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:45:5
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | many();
|
2022-08-16 09:46:33 -05:00
|
|
|
| ^^^^^^
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
error: unused array of `S` in tuple element 0 that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:46:6
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | ([S], 0, ());
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unused array of implementers of `T` that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:47:5
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | array_of_impl_trait();
|
2022-08-16 09:46:33 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
error: unused array of boxed `T` trait objects in tuple element 1 that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:48:5
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | impl_array();
|
2022-02-25 05:30:16 -06:00
|
|
|
| ^^^^^^^^^^^^
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
error: unused array of arrays of arrays of `S` that must be used
|
2022-11-13 06:02:52 -06:00
|
|
|
--> $DIR/must_use-array.rs:50:5
|
2019-06-29 10:23:15 -05:00
|
|
|
|
|
|
|
|
LL | array_of_arrays_of_arrays();
|
2022-08-16 09:46:33 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-06-29 10:23:15 -05:00
|
|
|
|
2022-11-13 06:02:52 -06:00
|
|
|
error: unused array of `S` that must be used
|
|
|
|
--> $DIR/must_use-array.rs:52:5
|
|
|
|
|
|
|
|
|
LL | usize_max();
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2019-06-29 10:23:15 -05:00
|
|
|
|