summary refs log tree commit diff
path: root/src/test/run-pass/enum-vec-initializer.rs
AgeCommit message (Collapse)AuthorLines
2014-12-20Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.Nick Cameron-4/+4
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
2014-11-17Switch to purely namespaced enumsSteven Fackler-2/+2
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
2014-10-09test: Convert statics to constantsAlex Crichton-3/+3
Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-4/+4
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2013-09-25Fix run-pass tests to have 'pub fn main'Alex Crichton-1/+1
This is required by the check-fast target because each test is slurped up into a submodule.
2013-08-17Fix warnings it testsErick Tryzelaar-5/+5
2013-07-16Permit C-style enums in vector repeat length expressions (N.B. values only, ↵Josh Matthews-0/+24
not type signatures)