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 5a69cd7 commit c89afc3Copy full SHA for c89afc3
src/test/compile-fail/pat-ref-enum.rs
@@ -8,10 +8,10 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-fn matcher(x: option<int>) {
+fn matcher(x: Option<int>) {
12
match x {
13
- ref some(i) => {} //~ ERROR expected identifier, found enum pattern
14
- none => {}
+ ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
+ None => {}
15
}
16
17
0 commit comments