serde/test_suite/tests/ui/conflict/from-try-from.rs

10 lines
130 B
Rust
Raw Normal View History

2019-05-12 01:26:42 -05:00
use serde_derive::Serialize;
#[derive(Serialize)]
#[serde(from = "u64", try_from = "u64")]
struct S {
a: u8,
}
fn main() {}