diff options
Diffstat (limited to 'tests/ui/rust-2018/uniform-paths/fn-local-enum.rs')
-rw-r--r-- | tests/ui/rust-2018/uniform-paths/fn-local-enum.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs b/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs new file mode 100644 index 000000000..c6525869b --- /dev/null +++ b/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs @@ -0,0 +1,13 @@ +// build-pass (FIXME(62277): could be check-pass?) +// edition:2018 + +fn main() { + enum E { A, B, C } + + use E::*; + match A { + A => {} + B => {} + C => {} + } +} |