diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-12-18 17:55:04 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-12-30 13:06:24 +1300 |
| commit | ed8f5039115308ca9d5591126e4d8a77864d4730 (patch) | |
| tree | fef6c67dd64068ff73c4509d078d25ba88fa4f21 /src/libcoretest | |
| parent | 71123902e17ad339649f33423995eac78da40e3c (diff) | |
| download | rust-ed8f5039115308ca9d5591126e4d8a77864d4730.tar.gz rust-ed8f5039115308ca9d5591126e4d8a77864d4730.zip | |
Add hypothetical support for ranges with only an upper bound
Note that this doesn't add the surface syntax.
Diffstat (limited to 'src/libcoretest')
| -rw-r--r-- | src/libcoretest/ops.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcoretest/ops.rs b/src/libcoretest/ops.rs index a8889ce9e34..3c8a6d480f7 100644 --- a/src/libcoretest/ops.rs +++ b/src/libcoretest/ops.rs @@ -56,6 +56,12 @@ fn test_range_from() { } #[test] +fn test_range_to() { + // Not much to test. + let _ = RangeTo { end: 42u }; +} + +#[test] fn test_full_range() { // Not much to test. let _ = FullRange; |
