diff --git a/tests/ui/serde.rs b/tests/ui/serde.rs index 83150638ac1..8c4143b0dcf 100644 --- a/tests/ui/serde.rs +++ b/tests/ui/serde.rs @@ -37,7 +37,6 @@ impl<'de> serde::de::Visitor<'de> for B { } fn visit_string(self, _v: String) -> Result - where E: serde::de::Error, { unimplemented!() diff --git a/tests/ui/serde.stderr b/tests/ui/serde.stderr index b8b489165d0..8b7daae9909 100644 --- a/tests/ui/serde.stderr +++ b/tests/ui/serde.stderr @@ -2,11 +2,10 @@ error: you should not implement `visit_string` without also implementing `visit_ --> $DIR/serde.rs:39:5 | 39 | / fn visit_string(self, _v: String) -> Result -40 | | -41 | | where E: serde::de::Error, -42 | | { -43 | | unimplemented!() -44 | | } +40 | | where E: serde::de::Error, +41 | | { +42 | | unimplemented!() +43 | | } | |_____^ | note: lint level defined here