File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
branches/snap-stage3/src/test/compile-fail Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: c29a7520e7fb4a5b4d4eccfc594e05793ef6688d
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 50db061173a2a54a9897e2d42f88b95d2b820cc4
4
+ refs/heads/snap-stage3: 3ce5a9539fc7c20cf6a228bfc7d7fde03b9c6b93
5
5
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 11
11
// error-pattern: too big for the current
12
12
13
13
fn main ( ) {
14
- let fat : [ u8 , ..1 <<61 ] = [ 0 , ..1 <<61 ] ;
14
+ let fat : [ u8 , ..( 1 <<61 ) + ( 1 << 31 ) ] = [ 0 , ..( 1 <<61 ) + ( 1 << 31 ) ] ;
15
15
}
Original file line number Diff line number Diff line change 10
10
11
11
// error-pattern: too big for the current architecture
12
12
13
+ #[ cfg( target_word_size = "64" ) ]
13
14
fn main ( ) {
14
15
let n = 0 u;
15
16
let a = box [ & n, ..0xF000000000000000 u] ;
16
17
println ! ( "{}" , a[ 0xFFFFFF u] ) ;
17
18
}
19
+
20
+ #[ cfg( target_word_size = "32" ) ]
21
+ fn main ( ) {
22
+ let n = 0 u;
23
+ let a = box [ & n, ..0xFFFFFFFF u] ;
24
+ println ! ( "{}" , a[ 0xFFFFFF u] ) ;
25
+ }
You can’t perform that action at this time.
0 commit comments