Fix should_panic check
This commit is contained in:
parent
1865dd7374
commit
86e2f81f43
|
|
@ -959,7 +959,7 @@ fn broken_try_clone_doesnt_crash() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic(message = "blammo")]
|
#[should_panic(expected = "blammo")]
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
fn write_panic() {
|
fn write_panic() {
|
||||||
struct ExplodingStream(TcpStream);
|
struct ExplodingStream(TcpStream);
|
||||||
|
|
@ -988,7 +988,7 @@ fn write_panic() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic(message = "blammo")]
|
#[should_panic(expected = "blammo")]
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
fn read_panic() {
|
fn read_panic() {
|
||||||
struct ExplodingStream(TcpStream);
|
struct ExplodingStream(TcpStream);
|
||||||
|
|
@ -1017,7 +1017,7 @@ fn read_panic() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic(message = "blammo")]
|
#[should_panic(expected = "blammo")]
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
fn flush_panic() {
|
fn flush_panic() {
|
||||||
struct ExplodingStream(TcpStream);
|
struct ExplodingStream(TcpStream);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue