Skip to content

Commit

Permalink
fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Nov 23, 2021
1 parent bdfa153 commit 4e19f14
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions tests/max_encoded_len_ui/crate_str.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ error[E0277]: the trait bound `Example: WrapperTypeEncode` is not satisfied
3 | #[derive(Encode, MaxEncodedLen)]
| ^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`
|
::: $WORKSPACE/src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ------ required by this bound in `MaxEncodedLen`
|
= note: required because of the requirements on the impl of `Encode` for `Example`
note: required by a bound in `MaxEncodedLen`
--> $DIR/max_encoded_len.rs:28:26
|
28 | pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen`
= note: this error originates in the derive macro `MaxEncodedLen` (in Nightly builds, run with -Z macro-backtrace for more info)
10 changes: 5 additions & 5 deletions tests/max_encoded_len_ui/incomplete_attr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ error[E0277]: the trait bound `Example: WrapperTypeEncode` is not satisfied
3 | #[derive(Encode, MaxEncodedLen)]
| ^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`
|
::: $WORKSPACE/src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ------ required by this bound in `MaxEncodedLen`
|
= note: required because of the requirements on the impl of `Encode` for `Example`
note: required by a bound in `MaxEncodedLen`
--> $DIR/max_encoded_len.rs:28:26
|
28 | pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen`
= note: this error originates in the derive macro `MaxEncodedLen` (in Nightly builds, run with -Z macro-backtrace for more info)
10 changes: 5 additions & 5 deletions tests/max_encoded_len_ui/missing_crate_specifier.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ error[E0277]: the trait bound `Example: WrapperTypeEncode` is not satisfied
3 | #[derive(Encode, MaxEncodedLen)]
| ^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`
|
::: $WORKSPACE/src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ------ required by this bound in `MaxEncodedLen`
|
= note: required because of the requirements on the impl of `Encode` for `Example`
note: required by a bound in `MaxEncodedLen`
--> $DIR/max_encoded_len.rs:28:26
|
28 | pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen`
= note: this error originates in the derive macro `MaxEncodedLen` (in Nightly builds, run with -Z macro-backtrace for more info)
10 changes: 5 additions & 5 deletions tests/max_encoded_len_ui/not_encode.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ error[E0277]: the trait bound `NotEncode: WrapperTypeEncode` is not satisfied
3 | #[derive(MaxEncodedLen)]
| ^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NotEncode`
|
::: $WORKSPACE/src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ------ required by this bound in `MaxEncodedLen`
|
= note: required because of the requirements on the impl of `Encode` for `NotEncode`
note: required by a bound in `MaxEncodedLen`
--> $DIR/max_encoded_len.rs:28:26
|
28 | pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen`
= note: this error originates in the derive macro `MaxEncodedLen` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit 4e19f14

Please sign in to comment.