fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: the `Err`-variant returned from this function is very large 2 --> $DIR/result_large_err.rs:10:23 3 | 4LL | 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 = help: to override `-D warnings` add `#[allow(clippy::result_large_err)]` 10 11error: the `Err`-variant returned from this function is very large 12 --> $DIR/result_large_err.rs:22:21 13 | 14LL | pub fn ret() -> Result<(), Self> { 15 | ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes 16 | 17 = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>` 18 19error: the `Err`-variant returned from this function is very large 20 --> $DIR/result_large_err.rs:28:26 21 | 22LL | pub fn struct_error() -> Result<(), FullyDefinedLargeError> { 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 240 bytes 24 | 25 = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>` 26 27error: the `Err`-variant returned from this function is very large 28 --> $DIR/result_large_err.rs:34:45 29 | 30LL | pub fn large_err_via_type_alias<T>(x: T) -> Fdlr<T> { 31 | ^^^^^^^ the `Err`-variant is at least 240 bytes 32 | 33 = help: try reducing the size of `FullyDefinedLargeError`, for example by boxing large elements or replacing it with `Box<FullyDefinedLargeError>` 34 35error: the `Err`-variant returned from this function is very large 36 --> $DIR/result_large_err.rs:43:34 37 | 38LL | pub fn param_large_error<R>() -> Result<(), (u128, R, FullyDefinedLargeError)> { 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 256 bytes 40 | 41 = help: try reducing the size of `(u128, R, FullyDefinedLargeError)`, for example by boxing large elements or replacing it with `Box<(u128, R, FullyDefinedLargeError)>` 42 43error: the `Err`-variant returned from this function is very large 44 --> $DIR/result_large_err.rs:55:34 45 | 46LL | _Omg([u8; 512]), 47 | --------------- the largest variant contains at least 512 bytes 48... 49LL | pub fn large_enum_error() -> Result<(), Self> { 50 | ^^^^^^^^^^^^^^^^ 51 | 52 = help: try reducing the size of `LargeErrorVariants<()>`, for example by boxing large elements or replacing it with `Box<LargeErrorVariants<()>>` 53 54error: the `Err`-variant returned from this function is very large 55 --> $DIR/result_large_err.rs:68:30 56 | 57LL | _Biggest([u8; 1024]), 58 | -------------------- the largest variant contains at least 1024 bytes 59LL | _AlsoBig([u8; 512]), 60 | ------------------- the variant `_AlsoBig` contains at least 512 bytes 61... 62LL | fn large_enum_error() -> Result<(), Self> { 63 | ^^^^^^^^^^^^^^^^ 64 | 65 = help: try reducing the size of `MultipleLargeVariants`, for example by boxing large elements or replacing it with `Box<MultipleLargeVariants>` 66 67error: the `Err`-variant returned from this function is very large 68 --> $DIR/result_large_err.rs:75:25 69 | 70LL | fn large_error() -> Result<(), [u8; 512]> { 71 | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes 72 | 73 = help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>` 74 75error: the `Err`-variant returned from this function is very large 76 --> $DIR/result_large_err.rs:95:29 77 | 78LL | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> { 79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes 80 | 81 = help: try reducing the size of `FullyDefinedUnionError`, for example by boxing large elements or replacing it with `Box<FullyDefinedUnionError>` 82 83error: the `Err`-variant returned from this function is very large 84 --> $DIR/result_large_err.rs:105:40 85 | 86LL | pub fn param_large_union<T: Copy>() -> Result<(), UnionError<T>> { 87 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes 88 | 89 = help: try reducing the size of `UnionError<T>`, for example by boxing large elements or replacing it with `Box<UnionError<T>>` 90 91error: the `Err`-variant returned from this function is very large 92 --> $DIR/result_large_err.rs:115:34 93 | 94LL | pub fn array_error_subst<U>() -> Result<(), ArrayError<i32, U>> { 95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes 96 | 97 = help: try reducing the size of `ArrayError<i32, U>`, for example by boxing large elements or replacing it with `Box<ArrayError<i32, U>>` 98 99error: the `Err`-variant returned from this function is very large 100 --> $DIR/result_large_err.rs:120:31 101 | 102LL | pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> { 103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes 104 | 105 = 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>>` 106 107error: aborting due to 12 previous errors 108