]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/never_type/feature-gate-never_type_fallback.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / never_type / feature-gate-never_type_fallback.stderr
index c652faafad4613444163815c748f2c564770b02e..670f76867ce45122b29e6ebba4a3c628318c9507 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `(): T` is not satisfied
    |
 LL | fn should_ret_unit() -> impl T {
    |                         ^^^^^^ the trait `T` is not implemented for `()`
-LL |
-LL |     panic!()
-   |     -------- this returned value is of type `!`
-   |
-   = note: the return type of a function must have a statically known size
 
 error: aborting due to previous error