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 77d8f60 commit 26e5313Copy full SHA for 26e5313
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 37bcd67a0956e0d3264abef08027f9d70d3b362e
+refs/heads/master: d09fd6561f6709b9362c687bfc3d046e7d181089
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
trunk/src/test/compile-fail/noncopyable-match-pattern.rs
@@ -0,0 +1,9 @@
+fn main() {
+ let x = some(unsafe::exclusive(false));
+ match x {
+ some(copy z) => { //~ ERROR copying a noncopyable value
+ do z.with |b| { assert !*b; }
6
+ }
7
+ none => fail
8
9
+}
0 commit comments