8 lines
106 B
Rust
8 lines
106 B
Rust
|
enum Foo = uint;
|
||
|
|
||
|
fn main() {
|
||
|
let x = Foo(1);
|
||
|
let y = fmt!("%?", x);
|
||
|
assert y == ~"Foo(1)";
|
||
|
}
|