kakts-log

programming について調べたことを整理していきます

2018-06-01から1ヶ月間の記事一覧

Rust: occured error when using closure without type annotation.

I'm studying Rust and trying to write Rust code using closure. I found some confusing error about Type Inference of Rust. This post is just a memorandum of understanding for mechanism of Rust. fn main() { // closure // argument x is set wi…