We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5743564 commit 6e1154dCopy full SHA for 6e1154d
src/librustc_typeck/diagnostics.rs
@@ -45,16 +45,16 @@ Matching with the wrong number of fields has no sensible interpretation:
45
46
```compile_fail
47
enum Fruit {
48
- Fruit::Apple(String, String),
49
- Fruit::Pear(u32),
+ Apple(String, String),
+ Pear(u32),
50
}
51
52
let x = Fruit::Apple(String::new(), String::new());
53
54
// Incorrect.
55
match x {
56
- Apple(a) => {},
57
- Apple(a, b, c) => {},
+ Fruit::Apple(a) => {},
+ Fruit::Apple(a, b, c) => {},
58
59
```
60
0 commit comments