1 Enum variants are qualified by default. For example, given this type:
10 You would match it using:
26 If you don't qualify the names, the code will bind new variables named "GET" and
27 "POST" instead. This behavior is likely not what you want, so `rustc` warns when
30 Qualified names are good practice, and most code works well with them. But if
31 you prefer them unqualified, you can import the variants into scope:
35 enum Method { GET, POST }
39 If you want others to be able to import variants from your module directly, use
44 pub enum Method { GET, POST }