blob: 95de98878affd2eb4028fb2d526220464b170668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error[E0308]: mismatched types
--> $DIR/existential-printing.rs:7:13
|
LL | fn f() -> impl FnOnce<()> { || () }
| --------------- the expected opaque type
LL |
LL | fn main() { () = f(); }
| ^^ --- this expression has type `impl FnOnce<()>`
| |
| expected opaque type, found `()`
|
= note: expected opaque type `impl FnOnce<()>`
found unit type `()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.
|