2023-09-25 04:28:58 -05:00
|
|
|
error: the `Err`-variant returned from this function is very large
|
|
|
|
--> $DIR/result_large_err.rs:6:12
|
|
|
|
|
|
|
|
|
LL | fn f2() -> 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]>`
|
|
|
|
= note: `-D clippy::result-large-err` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
|
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-09-25 04:28:58 -05:00
|
|
|
|