]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cast/casts-differing-anon.rs
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / test / ui / cast / casts-differing-anon.rs
index ccf41adce6bd83f769dcb48e8b461691b84be03f..d4a0f9613055ee5abf87eccec3fffe4df7a0dff1 100644 (file)
@@ -18,5 +18,5 @@ fn main() {
     // this is an `*mut fmt::Debug` in practice
     let mut b_raw = Box::into_raw(b);
     // ... and they should not be mixable
-    b_raw = f_raw as *mut _; //~ ERROR mismatched types
+    b_raw = f_raw as *mut _; //~ ERROR is invalid
 }