mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
12 lines
539 B
Text
12 lines
539 B
Text
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)]`
|
|
|
|
error: aborting due to previous error
|
|
|