]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/reachable/expr_cast.rs
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / reachable / expr_cast.rs
index f53bcb97e69723ad748e710a63deae7916f00876..e8e477ea4f6849aec68d7c03fc9ba2085393a8cb 100644 (file)
@@ -7,6 +7,7 @@
 fn a() {
     // the cast is unreachable:
     let x = {return} as !; //~ ERROR unreachable
+    //~| ERROR non-primitive cast
 }
 
 fn main() { }