diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-01-31 15:08:25 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-03-09 10:14:21 -0700 |
| commit | e2605b42c7ce37717118fe240f7d0e8c4eae3598 (patch) | |
| tree | 29aa2b8718f77fa3e1c04a60e0c8187e021768a7 /src/libcoretest/option.rs | |
| parent | 2574009af0ff70dc233beab246db8f2d715be2cb (diff) | |
Rename #[should_fail] to #[should_panic]
Diffstat (limited to 'src/libcoretest/option.rs')
| -rw-r--r-- | src/libcoretest/option.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcoretest/option.rs b/src/libcoretest/option.rs index 59116f23d44..fe0b10e9119 100644 --- a/src/libcoretest/option.rs +++ b/src/libcoretest/option.rs @@ -80,7 +80,7 @@ fn test_option_dance() { assert!(y.is_none()); } -#[test] #[should_fail] +#[test] #[should_panic] fn test_option_too_much_dance() { let mut y = Some(marker::NoCopy); let _y2 = y.take().unwrap(); @@ -139,14 +139,14 @@ fn test_unwrap() { } #[test] -#[should_fail] +#[should_panic] fn test_unwrap_panic1() { let x: Option<int> = None; x.unwrap(); } #[test] -#[should_fail] +#[should_panic] fn test_unwrap_panic2() { let x: Option<String> = None; x.unwrap(); |
