Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
canndrew committed Feb 3, 2017
1 parent 6a99573 commit 40c9538
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/compile-fail/defaulted-unit-warning.rs
Expand Up @@ -21,9 +21,12 @@ impl Deserialize for () {
}

fn doit() -> Result<(), String> {
let _ = Deserialize::deserialize()?;
//~^ ERROR code relies on type
//~| WARNING previously accepted
let _ = match Deserialize::deserialize() {
//~^ ERROR code relies on type
//~| WARNING previously accepted
Ok(x) => x,
Err(e) => return Err(e),
};
Ok(())
}

Expand Down

0 comments on commit 40c9538

Please sign in to comment.