]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/impl-trait-return-trailing-semicolon.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / suggestions / impl-trait-return-trailing-semicolon.stderr
index cc3a2b9419caf00b534f84325439ed7d00af08b9..d826222a06ae5d95fbd5838bc2b3fac95821e218 100644 (file)
@@ -5,8 +5,6 @@ LL | fn foo() -> impl Bar {
    |             ^^^^^^^^ the trait `Bar` is not implemented for `()`
 LL |     5;
    |      - consider removing this semicolon
-   |
-   = note: the return type of a function must have a statically known size
 
 error: aborting due to previous error