]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-17441.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-17441.rs
index 46a64f99354c61c98ef48a0ed056f1a9bc29369c..7d300bfb1483161148dec1fb44e79362929da0a2 100644 (file)
@@ -15,11 +15,11 @@ fn main() {
 
     // FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
     let _bar = Box::new(1_usize) as std::fmt::Debug;
-    //~^ ERROR cast to unsized type: `Box<usize>` as `core::fmt::Debug`
+    //~^ ERROR cast to unsized type: `Box<usize>` as `std::fmt::Debug`
     //~^^ HELP try casting to a `Box` instead
 
     let _baz = 1_usize as std::fmt::Debug;
-    //~^ ERROR cast to unsized type: `usize` as `core::fmt::Debug`
+    //~^ ERROR cast to unsized type: `usize` as `std::fmt::Debug`
     //~^^ HELP consider using a box or reference as appropriate
 
     let _quux = [1_usize, 2] as [usize];