mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-02 19:06:05 +00:00
12 lines
176 B
Rust
12 lines
176 B
Rust
enum foo {
|
|
a(uint),
|
|
b(str),
|
|
c,
|
|
}
|
|
|
|
fn main() {
|
|
assert "a(22)" == #fmt["%?", a(22u)];
|
|
assert "b(\"hi\")" == #fmt["%?", b("hi")];
|
|
assert "c" == #fmt["%?", c];
|
|
}
|