10 lines
92 B
Rust
10 lines
92 B
Rust
|
struct Foo {
|
||
|
x: &int
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let f = Foo { x: @3 };
|
||
|
assert *f.x == 3;
|
||
|
}
|
||
|
|