]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/impl_trait_fallback2.stderr
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / 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    = help: the trait `T` is implemented for `i32`
8
9 error[E0277]: the trait bound `(): T` is not satisfied
10   --> $DIR/impl_trait_fallback2.rs:15:11
11    |
12 LL | fn a() -> Foo {
13    |           ^^^ the trait `T` is not implemented for `()`
14    |
15    = help: the trait `T` is implemented for `i32`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0277`.