diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-05-17 13:15:46 +0200 |
|---|---|---|
| committer | ggomez <guillaume1.gomez@gmail.com> | 2016-05-17 13:43:23 +0200 |
| commit | 6e1154dc9d1ea73be905845e7fd34d80ad58e0cb (patch) | |
| tree | 6b2006ae1d54e5e6cd7c3c2f7f4d558b7667079e /src | |
| parent | 5743564f2d0139b8249d2ede4e720a6452d9c1d9 (diff) | |
Fix invalid enum declaration
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index af21c7148ef..5f2997a86a9 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -45,16 +45,16 @@ Matching with the wrong number of fields has no sensible interpretation: ```compile_fail enum Fruit { - Fruit::Apple(String, String), - Fruit::Pear(u32), + Apple(String, String), + Pear(u32), } let x = Fruit::Apple(String::new(), String::new()); // Incorrect. match x { - Apple(a) => {}, - Apple(a, b, c) => {}, + Fruit::Apple(a) => {}, + Fruit::Apple(a, b, c) => {}, } ``` |
