]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/issue-55872-1.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / impl-trait / issue-55872-1.stderr
index db49d988bb8eb81ae62e0a86172ae23c04e0b871..64c536cf1fe30b5513c20a22027d00a22453744c 100644 (file)
@@ -14,7 +14,6 @@ LL |     type E = impl Copy;
    |              ^^^^^^^^^ within `(S, T)`, the trait `Copy` is not implemented for `S`
    |
    = note: required because it appears within the type `(S, T)`
-   = note: the return type of a function must have a statically known size
 help: consider further restricting this bound
    |
 LL | impl<S: Default + Copy> Bar for S {
@@ -27,7 +26,6 @@ LL |     type E = impl Copy;
    |              ^^^^^^^^^ within `(S, T)`, the trait `Copy` is not implemented for `T`
    |
    = note: required because it appears within the type `(S, T)`
-   = note: the return type of a function must have a statically known size
 help: consider further restricting this bound
    |
 LL |     fn foo<T: Default + Copy>() -> Self::E {