{"categories":["rust"],"author_name":"kakts","title":"Rust: occured error when using closure without type annotation. ","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2018%2F06%2F27%2F231102\" title=\"Rust: occured error when using closure without type annotation.  - kakts-log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"kakts-log","type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/kakts/","blog_url":"https://kakts.dev/","published":"2018-06-27 23:11:02","version":"1.0","provider_name":"Hatena Blog","url":"https://kakts.dev/entry/2018/06/27/231102","description":"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 without type annotation. let closure = |x| x; // calling closur\u2026","width":"100%","height":"190"}