We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d96516 commit d4ee2f6Copy full SHA for d4ee2f6
library/std/src/net/ip/tests.rs
@@ -936,4 +936,10 @@ fn ip_const() {
936
937
const IS_MULTICAST: bool = IP_ADDRESS.is_multicast();
938
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);
945
}
src/test/ui/consts/std/net/ip.rs
0 commit comments