fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.1 KiB44 linesraw
1error: unused array of `S` that must be used
2  --> $DIR/must_use-array.rs:39:5
3   |
4LL |     singleton();
5   |     ^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/must_use-array.rs:1:9
9   |
10LL | #![deny(unused_must_use)]
11   |         ^^^^^^^^^^^^^^^
12
13error: unused array of `S` that must be used
14  --> $DIR/must_use-array.rs:40:5
15   |
16LL |     many();
17   |     ^^^^^^^
18
19error: unused array of `S` in tuple element 0 that must be used
20  --> $DIR/must_use-array.rs:41:6
21   |
22LL |     ([S], 0, ());
23   |      ^^^
24
25error: unused array of implementers of `T` that must be used
26  --> $DIR/must_use-array.rs:42:5
27   |
28LL |     array_of_impl_trait();
29   |     ^^^^^^^^^^^^^^^^^^^^^^
30
31error: unused array of boxed `T` trait objects in tuple element 1 that must be used
32  --> $DIR/must_use-array.rs:43:5
33   |
34LL |     impl_array();
35   |     ^^^^^^^^^^^^^
36
37error: unused array of arrays of arrays of `S` that must be used
38  --> $DIR/must_use-array.rs:45:5
39   |
40LL |     array_of_arrays_of_arrays();
41   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43error: aborting due to 6 previous errors
44