fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/suggest-calling-rpit-closure.rs:2:5 3 | 4LL | fn whatever() -> i32 { 5 | --- expected `i32` because of return type 6LL | opaque() 7 | ^^^^^^^^ expected `i32`, found opaque type 8... 9LL | fn opaque() -> impl Fn() -> i32 { 10 | ---------------- the found opaque type 11 | 12 = note: expected type `i32` 13 found opaque type `impl Fn() -> i32` 14help: use parentheses to call this opaque type 15 | 16LL | opaque()() 17 | ++ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0308`.