Add test for io::Error's size.
This commit is contained in:
parent
f293f70dd8
commit
f398a49829
1 changed files with 6 additions and 0 deletions
|
@ -1,9 +1,15 @@
|
|||
use super::{Custom, Error, ErrorKind, Repr};
|
||||
use crate::error;
|
||||
use crate::fmt;
|
||||
use crate::mem::size_of;
|
||||
use crate::sys::decode_error_kind;
|
||||
use crate::sys::os::error_string;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert!(size_of::<Error>() <= size_of::<[usize; 2]>());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_debug_error() {
|
||||
let code = 6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue