Auto merge of #250 - andersk:should_panic, r=cuviper

rational: test_recip_fail: Correct should_panic syntax

Fixes this warning with rustc nightly:

```
warning: attribute must be of the form: `#[should_panic]` or `#[should_panic(expected = "error message")]`
    --> rational/src/lib.rs:1051:7
     |
1051 |     #[should_panic = "== 0"]
     |       ^^^^^^^^^^^^^^^^^^^^^
     |
     = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
```
This commit is contained in:
Homu 2017-01-07 06:26:59 +09:00
commit a4faeeffc4
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ mod test {
} }
#[test] #[test]
#[should_panic = "== 0"] #[should_panic(expected = "== 0")]
fn test_recip_fail() { fn test_recip_fail() {
let _a = Ratio::new(0, 1).recip(); let _a = Ratio::new(0, 1).recip();
} }