]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/union/union-unsized.stderr
Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup
[rust.git] / src / test / ui / union / union-unsized.stderr
index f62a3b4d14b974c3c417fe22a54122c5f9ca4b75..454580dcbab01fc45a8839c055e52d4657fee9d9 100644 (file)
@@ -4,7 +4,7 @@ error[E0277]: the size for values of type `str` cannot be known at compilation t
 LL |     a: str,
    |        ^^^ doesn't have a size known at compile-time
    |
-   = help: the trait `std::marker::Sized` is not implemented for `str`
+   = help: the trait `Sized` is not implemented for `str`
    = note: no field of a union may have a dynamically sized type
    = help: change the field's type to have a statically known size
 help: borrowed types always have a statically known size
@@ -22,7 +22,7 @@ error[E0277]: the size for values of type `str` cannot be known at compilation t
 LL |     b: str,
    |        ^^^ doesn't have a size known at compile-time
    |
-   = help: the trait `std::marker::Sized` is not implemented for `str`
+   = help: the trait `Sized` is not implemented for `str`
    = note: no field of a union may have a dynamically sized type
    = help: change the field's type to have a statically known size
 help: borrowed types always have a statically known size