Skip to content

Commit de32e4b

Browse files
authored
Rollup merge of rust-lang#79444 - sasurau4:test/move-const-ip, r=matklad
Move const ip in ui test to unit test Helps with rust-lang#76268 r? `@matklad`
2 parents 0d49461 + d4ee2f6 commit de32e4b

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

library/std/src/net/ip/tests.rs

+6
Original file line numberDiff line numberDiff line change
@@ -936,4 +936,10 @@ fn ip_const() {
936936

937937
const IS_MULTICAST: bool = IP_ADDRESS.is_multicast();
938938
assert!(!IS_MULTICAST);
939+
940+
const IS_IP_V4: bool = IP_ADDRESS.is_ipv4();
941+
assert!(IS_IP_V4);
942+
943+
const IS_IP_V6: bool = IP_ADDRESS.is_ipv6();
944+
assert!(!IS_IP_V6);
939945
}

src/test/ui/consts/std/net/ip.rs

-13
This file was deleted.

0 commit comments

Comments
 (0)