File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
branches/try/src/test/compile-fail Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: a8ff91a630880fabc047d3d3d9383da2a9d59378
5
+ refs/heads/try: 097c8aefea1feca5c3f5ff93025e9477cc6fbb0e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
fn main ( ) {
12
- let mut x: ~[ mut int] = ~[ 3 ] ;
12
+ let mut x: ~[ int ] = ~[ 3 ] ;
13
13
let y: ~[ int ] = ~[ 3 ] ;
14
14
x = y; //~ ERROR values differ in mutability
15
15
}
Original file line number Diff line number Diff line change 10
10
11
11
// xfail-test
12
12
fn function ( ) -> & [ mut int] {
13
- let mut x: & static/[ mut int ] = & [ 1 , 2 , 3 ] ;
13
+ let mut x: & static/[ int ] = & [ 1 , 2 , 3 ] ;
14
14
x[ 0 ] = 12345 ;
15
15
x //~ ERROR bad
16
16
}
You can’t perform that action at this time.
0 commit comments