diff --git a/core/codegen/tests/ui-fail-nightly/from_form.stderr b/core/codegen/tests/ui-fail-nightly/from_form.stderr index bfbd2450..7bca8ba9 100644 --- a/core/codegen/tests/ui-fail-nightly/from_form.stderr +++ b/core/codegen/tests/ui-fail-nightly/from_form.stderr @@ -477,11 +477,11 @@ note: function defined here | pub fn ext<'v>(file: &TempFile<'_>, r#type: ContentType) -> Result<'v, ()> { | ^^^ -error[E0277]: the trait bound `i32: From<&str>` is not satisfied +error[E0277]: the trait bound `usize: From<&str>` is not satisfied --> tests/ui-fail-nightly/from_form.rs:171:23 | 171 | #[field(default = "no conversion")] - | ^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `i32` + | ^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `usize` | = help: the following other types implement trait `From`: > @@ -493,7 +493,7 @@ error[E0277]: the trait bound `i32: From<&str>` is not satisfied > > and 85 others - = note: required because of the requirements on the impl of `Into` for `&str` + = note: required because of the requirements on the impl of `Into` for `&str` error[E0308]: mismatched types --> tests/ui-fail-nightly/from_form.rs:203:33 diff --git a/core/codegen/tests/ui-fail-stable/from_form.stderr b/core/codegen/tests/ui-fail-stable/from_form.stderr index f94e4bc2..bedacccb 100644 --- a/core/codegen/tests/ui-fail-stable/from_form.stderr +++ b/core/codegen/tests/ui-fail-stable/from_form.stderr @@ -501,19 +501,19 @@ error[E0308]: mismatched types 165 | #[field(validate = ext("hello"))] | ^^^^^^^ expected struct `ContentType`, found `&str` -error[E0277]: the trait bound `i32: From<&str>` is not satisfied +error[E0277]: the trait bound `usize: From<&str>` is not satisfied --> tests/ui-fail-stable/from_form.rs:171:23 | 171 | #[field(default = "no conversion")] - | ^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `i32` + | ^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `usize` | = help: the following implementations were found: - > - > - > - > + > + > + > + > and 89 others - = note: required because of the requirements on the impl of `Into` for `&str` + = note: required because of the requirements on the impl of `Into` for `&str` error[E0308]: mismatched types --> tests/ui-fail-stable/from_form.rs:203:33 diff --git a/core/codegen/tests/ui-fail/from_form.rs b/core/codegen/tests/ui-fail/from_form.rs index 2389f3c6..60a06158 100644 --- a/core/codegen/tests/ui-fail/from_form.rs +++ b/core/codegen/tests/ui-fail/from_form.rs @@ -169,7 +169,7 @@ struct Validate3 { #[derive(FromForm)] struct Default0 { #[field(default = "no conversion")] - first: i32, + first: usize, } #[derive(FromForm)]