about summary refs log tree commit diff
path: root/src/test/run-pass/resource-destruct.rs
AgeCommit message (Collapse)AuthorLines
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-1/+1
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-08-20ReformatBrian Anderson-1/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-07-27Reformat for new syntaxMarijn Haverbeke-12/+5
2011-06-28Use 'resource' rather than 'res' as a keywordMarijn Haverbeke-1/+1
Resources are now defined like... resource fd(int n) { close(n); } Calling fd with an int will then produce a non-copyable value that, when dropped, will call close on the given int.
2011-06-28Add test cases for resourcesMarijn Haverbeke-0/+16