auto merge of #13769 : alexcrichton/rust/restrict-some-scopes, r=huonw

This addresses the ICE from #13763, but it does not allow the test to compile,
due to #13768. An alternate test was checked in in the meantime.

Closes #13763
This commit is contained in:
bors 2014-04-26 06:46:24 -07:00
commit ade02bb534
2 changed files with 24 additions and 3 deletions

View file

@ -0,0 +1,20 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::u8;
static NUM: uint = u8::BITS as uint;
struct MyStruct { nums: [uint, ..8] }
fn main() {
let _s = MyStruct { nums: [0, ..NUM] };
}