]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/unused/must_use-array.stderr
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / lint / unused / must_use-array.stderr
1 error: unused array of `S` that must be used
2   --> $DIR/must_use-array.rs:39:5
3    |
4 LL |     singleton();
5    |     ^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/must_use-array.rs:1:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: unused array of `S` that must be used
14   --> $DIR/must_use-array.rs:40:5
15    |
16 LL |     many();
17    |     ^^^^^^^
18
19 error: unused array of `S` in tuple element 0 that must be used
20   --> $DIR/must_use-array.rs:41:6
21    |
22 LL |     ([S], 0, ());
23    |      ^^^
24
25 error: unused array of implementers of `T` that must be used
26   --> $DIR/must_use-array.rs:42:5
27    |
28 LL |     array_of_impl_trait();
29    |     ^^^^^^^^^^^^^^^^^^^^^^
30
31 error: unused array of boxed `T` trait objects in tuple element 1 that must be used
32   --> $DIR/must_use-array.rs:43:5
33    |
34 LL |     impl_array();
35    |     ^^^^^^^^^^^^^
36
37 error: unused array of arrays of arrays of `S` that must be used
38   --> $DIR/must_use-array.rs:45:5
39    |
40 LL |     array_of_arrays_of_arrays();
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 error: aborting due to 6 previous errors
44