]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-41255.rs
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-41255.rs
index 395ab8601bcc5fb3cb50e4f81435ff941d0110c1..60fdf7c3e8a479b18b5e7355cb941a6f4fc6fd50 100644 (file)
@@ -9,6 +9,8 @@ fn main() {
     match x {
         5.0 => {}, //~ ERROR floating-point types cannot be used in patterns
                    //~| WARNING hard error
+                   //~| ERROR floating-point types cannot be used in patterns
+                   //~| WARNING this was previously accepted by the compiler but is being
         5.0f32 => {}, //~ ERROR floating-point types cannot be used in patterns
                       //~| WARNING hard error
         -5.0 => {}, //~ ERROR floating-point types cannot be used in patterns