]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-42312.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-42312.stderr
index f69c2a9925de7bd922221ea56208efa27ce8d55d..6fe151622433a83050286b46287dd1d5d0b2b1b5 100644 (file)
@@ -9,11 +9,11 @@ LL |     fn baz(_: Self::Target) where Self: Deref {}
 help: consider further restricting the associated type
    |
 LL |     fn baz(_: Self::Target) where Self: Deref, <Self as Deref>::Target: Sized {}
-   |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                                              ++++++++++++++++++++++++++++++++
 help: function arguments must have a statically known size, borrowed types always have a known size
    |
 LL |     fn baz(_: &Self::Target) where Self: Deref {}
-   |               ^
+   |               +
 
 error[E0277]: the size for values of type `(dyn ToString + 'static)` cannot be known at compilation time
   --> $DIR/issue-42312.rs:8:10
@@ -26,7 +26,7 @@ LL | pub fn f(_: dyn ToString) {}
 help: function arguments must have a statically known size, borrowed types always have a known size
    |
 LL | pub fn f(_: &dyn ToString) {}
-   |             ^
+   |             +
 
 error: aborting due to 2 previous errors