]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/casts-differing-anon.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / casts-differing-anon.rs
index cba178104c99fc13703a5e76b028b4ff91212a57..d4a0f9613055ee5abf87eccec3fffe4df7a0dff1 100644 (file)
@@ -5,7 +5,7 @@ fn foo() -> Box<impl fmt::Debug+?Sized> {
     x
 }
 fn bar() -> Box<impl fmt::Debug+?Sized> {
-    let y: Box<fmt::Debug> = Box::new([0]);
+    let y: Box<dyn fmt::Debug> = Box::new([0]);
     y
 }