]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/unsized/return-unsized-from-trait-method.rs
Rollup merge of #98665 - ChrisDenton:deprecated-suggestion, r=compiler-errors
[rust.git] / src / test / ui / unsized / return-unsized-from-trait-method.rs
index ebe6edd1010147844ecf7c56426ac7744437838f..f053f4b0af89c0de9b720c382ea1c910a4341fba 100644 (file)
@@ -7,7 +7,7 @@ trait Foo {
 fn foo(f: Option<&dyn Foo>) {
     if let Some(f) = f {
         let _ = f.foo();
-        //~^ ERROR cannot move a value of type [u8]: the size of [u8] cannot be statically determined
+        //~^ ERROR cannot move a value of type `[u8]`
     }
 }