rust/tests/ui/lint/unused/must_use-array.stderr

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-06-29 10:23:15 -05:00
error: unused array of `S` that must be used
--> $DIR/must_use-array.rs:44:5
2019-06-29 10:23:15 -05:00
|
LL | singleton();
| ^^^^^^^^^^^
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
--> $DIR/must_use-array.rs:45:5
2019-06-29 10:23:15 -05:00
|
LL | many();
| ^^^^^^
2019-06-29 10:23:15 -05:00
error: unused array of `S` in tuple element 0 that must be used
--> $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
--> $DIR/must_use-array.rs:47:5
2019-06-29 10:23:15 -05:00
|
LL | array_of_impl_trait();
| ^^^^^^^^^^^^^^^^^^^^^
2019-06-29 10:23:15 -05:00
error: unused array of boxed `T` trait objects in tuple element 1 that must be used
--> $DIR/must_use-array.rs:48:5
2019-06-29 10:23:15 -05:00
|
LL | impl_array();
| ^^^^^^^^^^^^
2019-06-29 10:23:15 -05:00
error: unused array of arrays of arrays of `S` that must be used
--> $DIR/must_use-array.rs:50:5
2019-06-29 10:23:15 -05:00
|
LL | array_of_arrays_of_arrays();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-06-29 10:23:15 -05: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