blob: 78cc83bdbfadbb075e5026f83cd283db5addc2c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0277]: the trait bound `(): T` is not satisfied
--> $DIR/impl_trait_fallback2.rs:8:25
|
LL | fn should_ret_unit() -> impl T {
| ^^^^^^ the trait `T` is not implemented for `()`
|
= help: the trait `T` is implemented for `i32`
error[E0277]: the trait bound `(): T` is not satisfied
--> $DIR/impl_trait_fallback2.rs:15:11
|
LL | fn a() -> Foo {
| ^^^ the trait `T` is not implemented for `()`
|
= help: the trait `T` is implemented for `i32`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
|