1 error: `std::ops::Range<usize>` is forbidden as the type of a const generic parameter
2 --> $DIR/const-generics-range.rs:7:24
4 LL | struct _Range<const R: std::ops::Range<usize>>;
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: the only supported types are integers, `bool` and `char`
8 = help: more complex types are supported with `#![feature(const_generics)]`
10 error: `RangeFrom<usize>` is forbidden as the type of a const generic parameter
11 --> $DIR/const-generics-range.rs:12:28
13 LL | struct _RangeFrom<const R: std::ops::RangeFrom<usize>>;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: the only supported types are integers, `bool` and `char`
17 = help: more complex types are supported with `#![feature(const_generics)]`
19 error: `RangeFull` is forbidden as the type of a const generic parameter
20 --> $DIR/const-generics-range.rs:17:28
22 LL | struct _RangeFull<const R: std::ops::RangeFull>;
25 = note: the only supported types are integers, `bool` and `char`
26 = help: more complex types are supported with `#![feature(const_generics)]`
28 error: `RangeInclusive<usize>` is forbidden as the type of a const generic parameter
29 --> $DIR/const-generics-range.rs:23:33
31 LL | struct _RangeInclusive<const R: std::ops::RangeInclusive<usize>>;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 = note: the only supported types are integers, `bool` and `char`
35 = help: more complex types are supported with `#![feature(const_generics)]`
37 error: `RangeTo<usize>` is forbidden as the type of a const generic parameter
38 --> $DIR/const-generics-range.rs:28:26
40 LL | struct _RangeTo<const R: std::ops::RangeTo<usize>>;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^
43 = note: the only supported types are integers, `bool` and `char`
44 = help: more complex types are supported with `#![feature(const_generics)]`
46 error: `RangeToInclusive<usize>` is forbidden as the type of a const generic parameter
47 --> $DIR/const-generics-range.rs:33:35
49 LL | struct _RangeToInclusive<const R: std::ops::RangeToInclusive<usize>>;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 = note: the only supported types are integers, `bool` and `char`
53 = help: more complex types are supported with `#![feature(const_generics)]`
55 error: aborting due to 6 previous errors