summary refs log tree commit diff
path: root/src/test/compile-fail/enum-to-float-cast.rs
AgeCommit message (Collapse)AuthorLines
2015-07-29Improve typeck diagnostic messagesSimonas Kazlauskas-2/+2
Mostly by splitting error messages into proper pairs of errors and helps
2015-04-14Fallout from this change.Felix S. Klock II-4/+0
2014-11-17Switch to purely namespaced enumsSteven Fackler-4/+4
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-06-13librustc: Forbid enum-to-float casts.Patrick Walton-0/+35
Closes #14794. If you're casting from an enum to a float, cast through an integer first. [breaking-change]