2016-07-12 15:36:11 +00:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
#![deny(serde_api_misuse)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
extern crate serde;
|
|
|
|
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
impl serde::de::Visitor for A {
|
|
|
|
type Value = ();
|
2017-01-24 10:31:42 +00:00
|
|
|
|
|
|
|
fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn visit_str<E>(self, _v: &str) -> Result<Self::Value, E>
|
|
|
|
where E: serde::de::Error,
|
2016-07-12 15:36:11 +00:00
|
|
|
{
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2017-01-24 10:31:42 +00:00
|
|
|
fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
|
|
|
|
where E: serde::de::Error,
|
2016-07-12 15:36:11 +00:00
|
|
|
{
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct B;
|
|
|
|
|
|
|
|
impl serde::de::Visitor for B {
|
|
|
|
type Value = ();
|
|
|
|
|
2017-01-24 10:31:42 +00:00
|
|
|
fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
|
2017-02-08 13:58:07 +00:00
|
|
|
|
2017-01-24 10:31:42 +00:00
|
|
|
where E: serde::de::Error,
|
2016-07-12 15:36:11 +00:00
|
|
|
{
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|