Skip to content
Myr

Merge pull request #2839 from dtolnay/pr2558

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update ui tests from PR 2558

authored by David Tolnay · committed by GitHub · parents 422c719, 53ade10 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:test_suite/tests/ui/with/incorrect_type.stderr+4 added-4 removed
5 unmodified lines
615 | struct W(#[serde(with = "w")] u8, u8);7 | --- required by a bound introduced by this call8 |9 = help: the following other types implement trait `Serializer`:10 &'a mut Formatter<'b>10 &mut Formatter<'a>11 FlatMapSerializer<'a, M>12 _::_serde::__private::ser::content::ContentSerializer<E>13note: required by a bound in `w::serialize`14 --> tests/ui/with/incorrect_type.rs:9:28
19 unmodified lines
3415 | struct W(#[serde(with = "w")] u8, u8);35 | ^^^ the trait `Serializer` is not implemented for `&u8`36 |37 = help: the following other types implement trait `Serializer`:38 &'a mut Formatter<'b>38 &mut Formatter<'a>39 FlatMapSerializer<'a, M>40 _::_serde::__private::ser::content::ContentSerializer<E>4142error[E0308]: `?` operator has incompatible types
12 unmodified lines
5518 | struct S(#[serde(serialize_with = "w::serialize")] u8, u8);56 | -------------- required by a bound introduced by this call57 |58 = help: the following other types implement trait `Serializer`:59 &'a mut Formatter<'b>59 &mut Formatter<'a>60 FlatMapSerializer<'a, M>61 _::_serde::__private::ser::content::ContentSerializer<E>62note: required by a bound in `w::serialize`63 --> tests/ui/with/incorrect_type.rs:9:28
19 unmodified lines
8318 | struct S(#[serde(serialize_with = "w::serialize")] u8, u8);84 | ^^^^^^^^^^^^^^ the trait `Serializer` is not implemented for `&u8`85 |86 = help: the following other types implement trait `Serializer`:87 &'a mut Formatter<'b>87 &mut Formatter<'a>88 FlatMapSerializer<'a, M>89 _::_serde::__private::ser::content::ContentSerializer<E>9091error[E0308]: `?` operator has incompatible types
6 unmodified lines