]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/object-safety/object-safety-by-value-self-use.rs
Rollup merge of #98665 - ChrisDenton:deprecated-suggestion, r=compiler-errors
[rust.git] / src / test / ui / object-safety / object-safety-by-value-self-use.rs
index 0b70c8ad45e7de831b79c126e21fccc185134fbb..8e93c538217bbd2e4ec90cabd41e0b03d192fbc1 100644 (file)
@@ -11,8 +11,8 @@ trait Baz {
     fn baz(self: Self);
 }
 
-fn use_bar(t: Box<Bar>) {
-    t.bar() //~ ERROR cannot move a value of type dyn Bar
+fn use_bar(t: Box<dyn Bar>) {
+    t.bar() //~ ERROR cannot move a value of type `dyn Bar`
 }
 
 fn main() { }