coretest: Ensure that pointer formatting flags are cleaned up
This commit is contained in:
parent
5aaa606932
commit
fcf88b8f87
1 changed files with 7 additions and 0 deletions
|
@ -9,3 +9,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
mod num;
|
||||
|
||||
#[test]
|
||||
fn test_format_flags() {
|
||||
// No residual flags left by pointer formatting
|
||||
let p = "".as_ptr();
|
||||
assert_eq!(format!("{:p} {:x}", p, 16u), format!("{:p} 10", p));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue