rust/tests/run-pass/tuple_like_struct_constructor.rs
2017-01-12 08:52:22 +01:00

6 lines
115 B
Rust

fn main() {
#[derive(PartialEq, Eq, Debug)]
struct A(i32);
assert_eq!(Some(42).map(A), Some(A(42)));
}