@@ -42,50 +42,66 @@ LL | pub fn param_large_error<R>() -> Result<(), (u128, R, FullyDefinedLargeErro
4242error: the `Err`-variant returned from this function is very large
4343 --> $DIR/result_large_err.rs:48:34
4444 |
45+ LL | _Omg([u8; 512]),
46+ | --------------- the largest variant contains at least 512 bytes
47+ ...
4548LL | pub fn large_enum_error() -> Result<(), Self> {
46- | ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 513 bytes
49+ | ^^^^^^^^^^^^^^^^
4750 |
4851 = help: try reducing the size of `LargeErrorVariants<()>`, for example by boxing large elements or replacing it with `Box<LargeErrorVariants<()>>`
4952
5053error: the `Err`-variant returned from this function is very large
51- --> $DIR/result_large_err.rs:54:25
54+ --> $DIR/result_large_err.rs:60:30
55+ |
56+ LL | _Biggest([u8; 1024]),
57+ | -------------------- the largest variant contains at least 1024 bytes
58+ LL | _AlsoBig([u8; 512]),
59+ | ------------------- the variant `_AlsoBig` contains at least 512 bytes
60+ ...
61+ LL | fn large_enum_error() -> Result<(), Self> {
62+ | ^^^^^^^^^^^^^^^^
63+ |
64+ = help: try reducing the size of `MultipleLargeVariants`, for example by boxing large elements or replacing it with `Box<MultipleLargeVariants>`
65+
66+ error: the `Err`-variant returned from this function is very large
67+ --> $DIR/result_large_err.rs:66:25
5268 |
5369LL | fn large_error() -> Result<(), [u8; 512]> {
5470 | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
5571 |
5672 = help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
5773
5874error: the `Err`-variant returned from this function is very large
59- --> $DIR/result_large_err.rs:73 :29
75+ --> $DIR/result_large_err.rs:85 :29
6076 |
6177LL | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> {
6278 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
6379 |
6480 = help: try reducing the size of `FullyDefinedUnionError`, for example by boxing large elements or replacing it with `Box<FullyDefinedUnionError>`
6581
6682error: the `Err`-variant returned from this function is very large
67- --> $DIR/result_large_err.rs:82 :40
83+ --> $DIR/result_large_err.rs:94 :40
6884 |
6985LL | pub fn param_large_union<T: Copy>() -> Result<(), UnionError<T>> {
7086 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
7187 |
7288 = help: try reducing the size of `UnionError<T>`, for example by boxing large elements or replacing it with `Box<UnionError<T>>`
7389
7490error: the `Err`-variant returned from this function is very large
75- --> $DIR/result_large_err.rs:91 :34
91+ --> $DIR/result_large_err.rs:103 :34
7692 |
7793LL | pub fn array_error_subst<U>() -> Result<(), ArrayError<i32, U>> {
7894 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
7995 |
8096 = help: try reducing the size of `ArrayError<i32, U>`, for example by boxing large elements or replacing it with `Box<ArrayError<i32, U>>`
8197
8298error: the `Err`-variant returned from this function is very large
83- --> $DIR/result_large_err.rs:95 :31
99+ --> $DIR/result_large_err.rs:107 :31
84100 |
85101LL | pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> {
86102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
87103 |
88104 = 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>>`
89105
90- error: aborting due to 11 previous errors
106+ error: aborting due to 12 previous errors
91107
0 commit comments