]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/result_large_err.stderr
Auto merge of #101986 - WaffleLapkin:move_lint_note_to_the_bottom, r=estebank
[rust.git] / src / tools / clippy / tests / ui / result_large_err.stderr
1 error: the `Err`-variant returned from this function is very large
2   --> $DIR/result_large_err.rs:8:23
3    |
4 LL | pub fn large_err() -> Result<(), [u8; 512]> {
5    |                       ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
6    |
7    = help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
8    = note: `-D clippy::result-large-err` implied by `-D warnings`
9
10 error: the `Err`-variant returned from this function is very large
11   --> $DIR/result_large_err.rs:19:21
12    |
13 LL |     pub fn ret() -> Result<(), Self> {
14    |                     ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes
15    |
16    = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
17
18 error: the `Err`-variant returned from this function is very large
19   --> $DIR/result_large_err.rs:24:26
20    |
21 LL | pub fn struct_error() -> Result<(), FullyDefinedLargeError> {
22    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes
23    |
24    = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
25
26 error: the `Err`-variant returned from this function is very large
27   --> $DIR/result_large_err.rs:29:45
28    |
29 LL | pub fn large_err_via_type_alias<T>(x: T) -> Fdlr<T> {
30    |                                             ^^^^^^^ the `Err`-variant is at least 240 bytes
31    |
32    = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
33
34 error: the `Err`-variant returned from this function is very large
35   --> $DIR/result_large_err.rs:37:34
36    |
37 LL | pub fn param_large_error<R>() -> Result<(), (u128, R, FullyDefinedLargeError)> {
38    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 256 bytes
39    |
40    = help: try reducing the size of `(u128, R, FullyDefinedLargeError)`, for example by boxing large elements or replacing it with `Box<(u128, R, FullyDefinedLargeError)>`
41
42 error: the `Err`-variant returned from this function is very large
43   --> $DIR/result_large_err.rs:48:34
44    |
45 LL |     pub fn large_enum_error() -> Result<(), Self> {
46    |                                  ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 513 bytes
47    |
48    = help: try reducing the size of `LargeErrorVariants<()>`, for example by boxing large elements or replacing it with `Box<LargeErrorVariants<()>>`
49
50 error: the `Err`-variant returned from this function is very large
51   --> $DIR/result_large_err.rs:54:25
52    |
53 LL |     fn large_error() -> Result<(), [u8; 512]> {
54    |                         ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
55    |
56    = help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
57
58 error: the `Err`-variant returned from this function is very large
59   --> $DIR/result_large_err.rs:73:29
60    |
61 LL | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> {
62    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
63    |
64    = help: try reducing the size of `FullyDefinedUnionError`, for example by boxing large elements or replacing it with `Box<FullyDefinedUnionError>`
65
66 error: the `Err`-variant returned from this function is very large
67   --> $DIR/result_large_err.rs:82:40
68    |
69 LL | pub fn param_large_union<T: Copy>() -> Result<(), UnionError<T>> {
70    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
71    |
72    = help: try reducing the size of `UnionError<T>`, for example by boxing large elements or replacing it with `Box<UnionError<T>>`
73
74 error: the `Err`-variant returned from this function is very large
75   --> $DIR/result_large_err.rs:91:34
76    |
77 LL | pub fn array_error_subst<U>() -> Result<(), ArrayError<i32, U>> {
78    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
79    |
80    = help: try reducing the size of `ArrayError<i32, U>`, for example by boxing large elements or replacing it with `Box<ArrayError<i32, U>>`
81
82 error: the `Err`-variant returned from this function is very large
83   --> $DIR/result_large_err.rs:95:31
84    |
85 LL | pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> {
86    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
87    |
88    = help: try reducing the size of `ArrayError<(i32, T), U>`, for example by boxing large elements or replacing it with `Box<ArrayError<(i32, T), U>>`
89
90 error: aborting due to 11 previous errors
91