]> git.lizzy.rs Git - rust.git/commit
Allow type annotations for blocks
authorMarijn Haverbeke <marijnh@gmail.com>
Fri, 9 Dec 2011 08:42:09 +0000 (09:42 +0100)
committerMarijn Haverbeke <marijnh@gmail.com>
Fri, 9 Dec 2011 08:42:22 +0000 (09:42 +0100)
commit44ffd8e3aadccbceb544074a3b96e255d0d97325
tree17b80b745a6bd1ac8171c9a8cff553b5b2bed149
parent54f72fbc10e3846214423d8734c15eebe0228575
Allow type annotations for blocks

I.e. {|foo: int| -> int foo + 2}

Issue #1275
src/comp/syntax/parse/parser.rs
src/test/run-pass/block-explicit-types.rs [new file with mode: 0644]