2024-07-19 18:25:11 -05:00
|
|
|
// rustfmt-style_edition: 2024
|
2019-02-01 04:58:38 -06:00
|
|
|
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"),
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|