about summary refs log tree commit diff
path: root/src/test/compile-fail/struct-like-enum-nonexhaustive.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-22/+0
2015-01-08Update compile fail tests to use isize.Huon Wilson-1/+1
2014-11-17Switch to purely namespaced enumsSteven Fackler-3/+3
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-11-15Un-feature gate struct variantsSteven Fackler-2/+0
Struct variant field visibility is now inherited. Remove `pub` keywords from declarations. Closes #18641 [breaking-change]
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+2
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-25rustc: Translate and check exhaustiveness of struct-like enum variant ↵Patrick Walton-0/+14
patterns. r=nmatsakis