10 lines
129 B
Rust
10 lines
129 B
Rust
use serde_derive::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
#[serde(transparent, try_from = "u64")]
|
|
struct S {
|
|
a: u8,
|
|
}
|
|
|
|
fn main() {}
|