@@ -42,50 +42,66 @@ LL | pub fn param_large_error<R>() -> Result<(), (u128, R, FullyDefinedLargeErro
42
42
error: the `Err`-variant returned from this function is very large
43
43
--> $DIR/result_large_err.rs:48:34
44
44
|
45
+ LL | _Omg([u8; 512]),
46
+ | --------------- the largest variant contains at least 512 bytes
47
+ ...
45
48
LL | pub fn large_enum_error() -> Result<(), Self> {
46
- | ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 513 bytes
49
+ | ^^^^^^^^^^^^^^^^
47
50
|
48
51
= help: try reducing the size of `LargeErrorVariants<()>`, for example by boxing large elements or replacing it with `Box<LargeErrorVariants<()>>`
49
52
50
53
error: 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
52
68
|
53
69
LL | fn large_error() -> Result<(), [u8; 512]> {
54
70
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
55
71
|
56
72
= help: try reducing the size of `[u8; 512]`, for example by boxing large elements or replacing it with `Box<[u8; 512]>`
57
73
58
74
error: 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
60
76
|
61
77
LL | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> {
62
78
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
63
79
|
64
80
= help: try reducing the size of `FullyDefinedUnionError`, for example by boxing large elements or replacing it with `Box<FullyDefinedUnionError>`
65
81
66
82
error: 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
68
84
|
69
85
LL | pub fn param_large_union<T: Copy>() -> Result<(), UnionError<T>> {
70
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 512 bytes
71
87
|
72
88
= help: try reducing the size of `UnionError<T>`, for example by boxing large elements or replacing it with `Box<UnionError<T>>`
73
89
74
90
error: 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
76
92
|
77
93
LL | pub fn array_error_subst<U>() -> Result<(), ArrayError<i32, U>> {
78
94
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
79
95
|
80
96
= help: try reducing the size of `ArrayError<i32, U>`, for example by boxing large elements or replacing it with `Box<ArrayError<i32, U>>`
81
97
82
98
error: 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
84
100
|
85
101
LL | pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> {
86
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes
87
103
|
88
104
= 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>>`
89
105
90
- error: aborting due to 11 previous errors
106
+ error: aborting due to 12 previous errors
91
107
0 commit comments