]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/impl_trait_fallback2.stderr
Rollup merge of #92917 - jackh726:issue-91762-2, r=nikomatsakis
[rust.git] / src / test / ui / never_type / impl_trait_fallback2.stderr
1 error[E0277]: the trait bound `(): T` is not satisfied
2   --> $DIR/impl_trait_fallback2.rs:8:25
3    |
4 LL | fn should_ret_unit() -> impl T {
5    |                         ^^^^^^ the trait `T` is not implemented for `()`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0277`.