]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/union/union-unsized.mirunsafeck.stderr
Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,nikomatsakis
[rust.git] / src / test / ui / union / union-unsized.mirunsafeck.stderr
index 86a13c1e7ca904db6b683dd18c8e48b7dd8c8b83..36e782ac0424dc632a2f4bc16e0c530583377a57 100644 (file)
@@ -10,11 +10,11 @@ LL |     a: str,
 help: borrowed types always have a statically known size
    |
 LL |     a: &str,
-   |        ^
+   |        +
 help: the `Box` type always has a statically known size and allocates its contents in the heap
    |
 LL |     a: Box<str>,
-   |        ^^^^   ^
+   |        ++++   +
 
 error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> $DIR/union-unsized.rs:15:8
@@ -28,11 +28,11 @@ LL |     b: str,
 help: borrowed types always have a statically known size
    |
 LL |     b: &str,
-   |        ^
+   |        +
 help: the `Box` type always has a statically known size and allocates its contents in the heap
    |
 LL |     b: Box<str>,
-   |        ^^^^   ^
+   |        ++++   +
 
 error: aborting due to 2 previous errors