Skip to content

Commit c8ed455

Browse files
committed
---
yaml --- r: 13106 b: refs/heads/master c: 6dc4bc5 h: refs/heads/master v: v3
1 parent 7d188b2 commit c8ed455

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 862976c267b3cc7a03efe5b7936b9025227447a4
2+
refs/heads/master: 6dc4bc517ad0283aa28c72a3f15d3b5611882987
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// xfail-fast (compile-flags unsupported on windows)
2+
// compile-flags:--borrowck=err
3+
// exec-env:RUST_POISON_ON_FREE=1
4+
5+
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

Comments
 (0)