rust/src/test/run-pass/struct-deref.rs

8 lines
78 B
Rust
Raw Normal View History

struct Foo(int);
fn main() {
let x: Foo = Foo(2);
assert *x == 2;
}