@@ -19,8 +19,13 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied
19
19
error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied
20
20
--> tests/ui-fail-nightly/from_form_type_errors.rs:5:10
21
21
|
22
- 5 | #[derive(FromForm)]
23
- | ^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send`
22
+ 5 | #[derive(FromForm)]
23
+ | ^-------
24
+ | |
25
+ | __________in this derive macro expansion
26
+ | |
27
+ 6 | | struct BadType3 {
28
+ | |_______________^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send`
24
29
|
25
30
= help: the following other types implement trait `FromFormField<'v>`:
26
31
&'v [u8]
@@ -36,6 +41,8 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied
36
41
note: required because it appears within the type `_::FromFormGeneratedContext<'r>`
37
42
--> tests/ui-fail-nightly/from_form_type_errors.rs:6:8
38
43
|
44
+ 5 | #[derive(FromForm)]
45
+ | -------- in this derive macro expansion
39
46
6 | struct BadType3 {
40
47
| ^^^^^^^^
41
48
note: required by a bound in `rocket::form::FromForm::Context`
@@ -66,8 +73,13 @@ error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
66
73
error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
67
74
--> tests/ui-fail-nightly/from_form_type_errors.rs:12:10
68
75
|
69
- 12 | #[derive(FromForm)]
70
- | ^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo<usize>`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send`
76
+ 12 | #[derive(FromForm)]
77
+ | ^-------
78
+ | |
79
+ | __________in this derive macro expansion
80
+ | |
81
+ 13 | | struct Other {
82
+ | |____________^ the trait `FromFormField<'_>` is not implemented for `Foo<usize>`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send`
71
83
|
72
84
= help: the following other types implement trait `FromFormField<'v>`:
73
85
&'v [u8]
@@ -83,6 +95,8 @@ error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
83
95
note: required because it appears within the type `_::FromFormGeneratedContext<'r>`
84
96
--> tests/ui-fail-nightly/from_form_type_errors.rs:13:8
85
97
|
98
+ 12 | #[derive(FromForm)]
99
+ | -------- in this derive macro expansion
86
100
13 | struct Other {
87
101
| ^^^^^
88
102
note: required by a bound in `rocket::form::FromForm::Context`
@@ -111,29 +125,32 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied
111
125
= note: required for `Unknown` to implement `FromForm<'r>`
112
126
= note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info)
113
127
114
- error[E0277]: the trait bound `Unknown: FromFormField<'_ >` is not satisfied
115
- --> tests/ui-fail-nightly/from_form_type_errors.rs:7:5
128
+ error[E0277]: the trait bound `Unknown: FromForm<'r >` is not satisfied
129
+ --> tests/ui-fail-nightly/from_form_type_errors.rs:7:12
116
130
|
117
131
7 | field: Unknown,
118
- | ^^^^^^^ ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>`
132
+ | ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>`
119
133
|
120
- = help: the following other types implement trait `FromFormField<'v >`:
121
- &'v [u8]
122
- &'v str
123
- Capped<&'v [u8] >
124
- Capped<&'v str >
125
- Capped<Cow <'v, str >>
126
- Capped<TempFile <'v>>
127
- Capped<std::string::String >
128
- Cow<'v, str >
134
+ = help: the following other types implement trait `FromForm<'r >`:
135
+ <(A, B) as FromForm<'v>>
136
+ <Arc<T> as FromForm<'v>>
137
+ <BTreeMap<K, V> as FromForm<'v> >
138
+ <BadType3 as FromForm<'r> >
139
+ <Contextual <'v, T> as FromForm<'v >>
140
+ <HashMap<K, V> as FromForm <'v>>
141
+ <Lenient<T> as FromForm<'v> >
142
+ <Other as FromForm<'r> >
129
143
and $N others
130
144
= note: required for `Unknown` to implement `FromForm<'r>`
131
145
132
- error[E0277]: the trait bound `Unknown: FromFormField<'r >` is not satisfied
146
+ error[E0277]: the trait bound `Unknown: FromFormField<'_ >` is not satisfied
133
147
--> tests/ui-fail-nightly/from_form_type_errors.rs:7:12
134
148
|
149
+ 5 | #[derive(FromForm)]
150
+ | -------- in this derive macro expansion
151
+ 6 | struct BadType3 {
135
152
7 | field: Unknown,
136
- | ^^^^^^^ the trait `FromFormField<'r >` is not implemented for `Unknown`
153
+ | ^^^^^^^ the trait `FromFormField<'_ >` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r> `
137
154
|
138
155
= help: the following other types implement trait `FromFormField<'v>`:
139
156
&'v [u8]
@@ -145,11 +162,8 @@ error[E0277]: the trait bound `Unknown: FromFormField<'r>` is not satisfied
145
162
Capped<std::string::String>
146
163
Cow<'v, str>
147
164
and $N others
148
- note: required by a bound in `FromFieldContext`
149
- --> $WORKSPACE/core/lib/src/form/from_form_field.rs
150
- |
151
- | pub struct FromFieldContext<'v, T: FromFormField<'v>> {
152
- | ^^^^^^^^^^^^^^^^^ required by this bound in `FromFieldContext`
165
+ = note: required for `Unknown` to implement `FromForm<'r>`
166
+ = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info)
153
167
154
168
error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
155
169
--> tests/ui-fail-nightly/from_form_type_errors.rs:12:10
@@ -170,29 +184,32 @@ error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
170
184
= note: required for `Foo<usize>` to implement `FromForm<'r>`
171
185
= note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info)
172
186
173
- error[E0277]: the trait bound `Foo<usize>: FromFormField<'_ >` is not satisfied
174
- --> tests/ui-fail-nightly/from_form_type_errors.rs:14:5
187
+ error[E0277]: the trait bound `Foo<usize>: FromForm<'r >` is not satisfied
188
+ --> tests/ui-fail-nightly/from_form_type_errors.rs:14:12
175
189
|
176
190
14 | field: Foo<usize>,
177
- | ^^^^^^^ ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo<usize>`, which is required by `Foo<usize>: FromForm<'r>`
191
+ | ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo<usize>`, which is required by `Foo<usize>: FromForm<'r>`
178
192
|
179
- = help: the following other types implement trait `FromFormField<'v >`:
180
- &'v [u8]
181
- &'v str
182
- Capped<&'v [u8] >
183
- Capped<&'v str >
184
- Capped<Cow <'v, str >>
185
- Capped<TempFile <'v>>
186
- Capped<std::string::String >
187
- Cow<'v, str >
193
+ = help: the following other types implement trait `FromForm<'r >`:
194
+ <(A, B) as FromForm<'v>>
195
+ <Arc<T> as FromForm<'v>>
196
+ <BTreeMap<K, V> as FromForm<'v> >
197
+ <BadType3 as FromForm<'r> >
198
+ <Contextual <'v, T> as FromForm<'v >>
199
+ <HashMap<K, V> as FromForm <'v>>
200
+ <Lenient<T> as FromForm<'v> >
201
+ <Other as FromForm<'r> >
188
202
and $N others
189
203
= note: required for `Foo<usize>` to implement `FromForm<'r>`
190
204
191
- error[E0277]: the trait bound `Foo<usize>: FromFormField<'r >` is not satisfied
205
+ error[E0277]: the trait bound `Foo<usize>: FromFormField<'_ >` is not satisfied
192
206
--> tests/ui-fail-nightly/from_form_type_errors.rs:14:12
193
207
|
208
+ 12 | #[derive(FromForm)]
209
+ | -------- in this derive macro expansion
210
+ 13 | struct Other {
194
211
14 | field: Foo<usize>,
195
- | ^^^^^^^^^^ the trait `FromFormField<'r >` is not implemented for `Foo<usize>`
212
+ | ^^^^^^^^^^ the trait `FromFormField<'_ >` is not implemented for `Foo<usize>`, which is required by `Foo<usize>: FromForm<'r >`
196
213
|
197
214
= help: the following other types implement trait `FromFormField<'v>`:
198
215
&'v [u8]
@@ -204,8 +221,5 @@ error[E0277]: the trait bound `Foo<usize>: FromFormField<'r>` is not satisfied
204
221
Capped<std::string::String>
205
222
Cow<'v, str>
206
223
and $N others
207
- note: required by a bound in `FromFieldContext`
208
- --> $WORKSPACE/core/lib/src/form/from_form_field.rs
209
- |
210
- | pub struct FromFieldContext<'v, T: FromFormField<'v>> {
211
- | ^^^^^^^^^^^^^^^^^ required by this bound in `FromFieldContext`
224
+ = note: required for `Foo<usize>` to implement `FromForm<'r>`
225
+ = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments