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 7d188b2 commit c8ed455Copy full SHA for c8ed455
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 862976c267b3cc7a03efe5b7936b9025227447a4
+refs/heads/master: 6dc4bc517ad0283aa28c72a3f15d3b5611882987
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/run-pass/borrowck-preserve-box-sometimes-needed.rs
@@ -0,0 +1,16 @@
+// xfail-fast (compile-flags unsupported on windows)
+// compile-flags:--borrowck=err
+// exec-env:RUST_POISON_ON_FREE=1
+
+fn switcher(x: option<@int>) {
6
+ let mut x = x;
7
+ alt x {
8
+ some(@y) { copy y; x = none; }
9
+ none { }
10
+ }
11
+}
12
13
+fn main() {
14
+ switcher(none);
15
+ switcher(some(@3));
16
0 commit comments