]> git.lizzy.rs Git - rust.git/blob - tests/ui/serde.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / serde.rs
1 #![feature(tool_lints)]
2
3 #![warn(clippy::serde_api_misuse)]
4 #![allow(dead_code)]
5
6 extern crate serde;
7
8 struct A;
9
10 impl<'de> serde::de::Visitor<'de> for A {
11     type Value = ();
12
13     fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
14         unimplemented!()
15     }
16
17     fn visit_str<E>(self, _v: &str) -> Result<Self::Value, E>
18         where E: serde::de::Error,
19     {
20         unimplemented!()
21     }
22
23     fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
24         where E: serde::de::Error,
25     {
26         unimplemented!()
27     }
28 }
29
30 struct B;
31
32 impl<'de> serde::de::Visitor<'de> for B {
33     type Value = ();
34
35     fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
36         unimplemented!()
37     }
38
39     fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
40         where E: serde::de::Error,
41     {
42         unimplemented!()
43     }
44 }
45
46 fn main() {
47 }