const generic expr based fixed length array manipulation crate
Diffstat (limited to 'src/slice.rs')
| -rw-r--r-- | src/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slice.rs b/src/slice.rs index 0221fc9..2f57c57 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -61,7 +61,7 @@ impl const Ranged for RangeToInclusive<usize> { /// /// Takes a type in the form {[`Range`], [`RangeInclusive`], [`RangeTo`], [`RangeToInclusive`]}. #[allow(private_bounds)] -pub const fn r<T: [const] Ranged>(x: T) -> Range { +pub const fn r<T: ~const Ranged>(x: T) -> Range { Ranged::range(x) } |