]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/async-error-span.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / async-await / async-error-span.stderr
index d808a5939bbe79769a5bd4765359c2f8fd027cef..8cd0e40c8cf841131514590cbfaa6ad5b079418b 100644 (file)
@@ -3,9 +3,6 @@ error[E0277]: `()` is not a future
    |
 LL | fn get_future() -> impl Future<Output = ()> {
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future
-LL |
-LL |     panic!()
-   |     -------- this returned value is of type `!`
    |
    = help: the trait `Future` is not implemented for `()`
    = note: the return type of a function must have a statically known size