blob: 5c5480912be43c22b98a11dbae59281d2f415707 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/closure-reform-bad.rs:11:15
|
LL | call_bare(f)
| ^ expected fn pointer, found closure
|
= note: expected type `for<'r> fn(&'r str)`
found type `[closure@$DIR/closure-reform-bad.rs:10:13: 10:50 string:_]`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.