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 0772f9a commit df84578Copy full SHA for df84578
src/libcore/tests/ops.rs
@@ -82,3 +82,18 @@ fn test_range_is_empty() {
82
assert!( (NAN ..= EPSILON).is_empty());
83
assert!( (NAN ..= NAN).is_empty());
84
}
85
+
86
+#[test]
87
+fn test_bound_cloned_unbounded() {
88
+ assert_eq!(Bound::<&u32>::Unbounded.cloned(), Bound::Unbounded);
89
+}
90
91
92
+fn test_bound_cloned_included() {
93
+ assert_eq!(Bound::Included(&3).cloned(), Bound::Included(3));
94
95
96
97
+fn test_bound_cloned_excluded() {
98
+ assert_eq!(Bound::Excluded(&3).cloned(), Bound::Excluded(3));
99
0 commit comments