mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
6 lines
115 B
Rust
6 lines
115 B
Rust
fn main() {
|
|
#[derive(PartialEq, Eq, Debug)]
|
|
struct A(i32);
|
|
assert_eq!(Some(42).map(A), Some(A(42)));
|
|
}
|