Skip to content

Commit 1179158

Browse files
committed
Update ui test with diagnostic::on_unimplemented from PR 2767
1 parent 91aa40e commit 1179158

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test_suite/tests/ui/on_unimplemented.stderr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ error[E0277]: the trait bound `MyStruct: Serialize` is not satisfied
66
| |
77
| required by a bound introduced by this call
88
|
9+
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `MyStruct` type
10+
= note: for types from other crates check whether the crate offers a `serde` feature flag
911
= help: the following other types implement trait `Serialize`:
1012
&'a T
1113
&'a mut T
@@ -31,6 +33,8 @@ error[E0277]: the trait bound `MyStruct: Deserialize<'_>` is not satisfied
3133
22 | let _: MyStruct = from_str("");
3234
| ^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `MyStruct`
3335
|
36+
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MyStruct` type
37+
= note: for types from other crates check whether the crate offers a `serde` feature flag
3438
= help: the following other types implement trait `Deserialize<'de>`:
3539
&'a Path
3640
&'a [u8]

0 commit comments

Comments
 (0)