2022-08-31 08:24:45 -05:00
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:10:23
2022-08-31 08:24:45 -05:00
|
LL | pub fn large_err() -> Result<(), [u8; 512]> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
|
= help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
2022-09-22 11:04:22 -05:00
= note: `-D clippy::result-large-err` implied by `-D warnings`
2023-08-01 07:02:21 -05:00
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
2022-08-31 08:24:45 -05:00
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:22:21
2022-08-31 08:24:45 -05:00
|
LL | pub fn ret() -> Result<(), Self> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes
|
= help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:28:26
2022-08-31 08:24:45 -05:00
|
LL | pub fn struct_error() -> Result<(), FullyDefinedLargeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes
|
= help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:34:45
2022-08-31 08:24:45 -05:00
|
LL | pub fn large_err_via_type_alias<T>(x: T) -> Fdlr<T> {
| ^^^^^^^ the `Err`-variant is at least 240 bytes
|
= help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:43:34
2022-08-31 08:24:45 -05:00
|
LL | pub fn param_large_error<R>() -> Result<(), (u128, R, FullyDefinedLargeError)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 256 bytes
|
= help: try reducing the size of `(u128, R, FullyDefinedLargeError)`, for example by boxing large elements or replacing it with `Box<(u128, R, FullyDefinedLargeError)>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:55:34
2022-08-31 08:24:45 -05:00
|
2022-11-21 13:34:47 -06:00
LL | _Omg([u8; 512]),
| --------------- the largest variant contains at least 512 bytes
...
2022-08-31 08:24:45 -05:00
LL | pub fn large_enum_error() -> Result<(), Self> {
2022-11-21 13:34:47 -06:00
| ^^^^^^^^^^^^^^^^
2022-08-31 08:24:45 -05:00
|
= help: try reducing the size of `LargeErrorVariants<()>`, for example by boxing large elements or replacing it with `Box<LargeErrorVariants<()>>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:68:30
2022-11-21 13:34:47 -06:00
|
LL | _Biggest([u8; 1024]),
| -------------------- the largest variant contains at least 1024 bytes
LL | _AlsoBig([u8; 512]),
| ------------------- the variant `_AlsoBig` contains at least 512 bytes
...
LL | fn large_enum_error() -> Result<(), Self> {
| ^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `MultipleLargeVariants`, for example by boxing large elements or replacing it with `Box<MultipleLargeVariants>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:75:25
2022-08-31 08:24:45 -05:00
|
LL | fn large_error() -> Result<(), [u8; 512]> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
|
= help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:95:29
2022-08-31 08:24:45 -05:00
|
LL | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
|
= help: try reducing the size of `FullyDefinedUnionError`, for example by boxing large elements or replacing it with `Box<FullyDefinedUnionError>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:105:40
2022-08-31 08:24:45 -05:00
|
LL | pub fn param_large_union<T: Copy>() -> Result<(), UnionError<T>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
|
= help: try reducing the size of `UnionError<T>`, for example by boxing large elements or replacing it with `Box<UnionError<T>>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:115:34
2022-08-31 08:24:45 -05:00
|
LL | pub fn array_error_subst<U>() -> Result<(), ArrayError<i32, U>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
|
= help: try reducing the size of `ArrayError<i32, U>`, for example by boxing large elements or replacing it with `Box<ArrayError<i32, U>>`
error: the `Err`-variant returned from this function is very large
2023-09-12 11:13:53 -05:00
--> $DIR/result_large_err.rs:120:31
2022-08-31 08:24:45 -05:00
|
LL | pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
|
= 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>>`
2022-11-21 13:34:47 -06:00
error: aborting due to 12 previous errors
2022-08-31 08:24:45 -05:00