mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
15 lines
322 B
Rust
15 lines
322 B
Rust
// rustfmt-version: Two
|
|
pub enum TestEnum {
|
|
a,
|
|
b,
|
|
}
|
|
|
|
fn the_test(input: TestEnum) {
|
|
match input {
|
|
TestEnum::a => String::from("aaa"),
|
|
TestEnum::b => String::from(
|
|
"this is a very very very very very very very very very very very very very very very ong string",
|
|
),
|
|
};
|
|
}
|