auto merge of #8069 : erickt/rust/maikklein, r=erickt
Good evening, This is a superset of @MaikKlein's #7969 commit, that I've fixed up to compile. I had a couple commits I wanted to do on top of @MaikKlein's work that I didn't want to bitrot.
This commit is contained in:
commit
20454da2db
15 changed files with 410 additions and 467 deletions
|
|
@ -8,10 +8,10 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern:get called on error result: ~"kitty"
|
||||
// error-pattern:get called on `Err` result: ~"kitty"
|
||||
|
||||
use std::result;
|
||||
|
||||
fn main() {
|
||||
error!(result::get(&result::Err::<int,~str>(~"kitty")));
|
||||
error!(result::Err::<int,~str>(~"kitty").get());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue