1 error: `std::ops::Range<usize>` is forbidden as the type of a const generic parameter
2 --> $DIR/const-generics-range.rs:8: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: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
10 error: `RangeFrom<usize>` is forbidden as the type of a const generic parameter
11 --> $DIR/const-generics-range.rs:13: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: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
19 error: `RangeFull` is forbidden as the type of a const generic parameter
20 --> $DIR/const-generics-range.rs:18:28
22 LL | struct _RangeFull<const R: std::ops::RangeFull>;
25 = note: the only supported types are integers, `bool` and `char`
26 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
28 error: `RangeInclusive<usize>` is forbidden as the type of a const generic parameter
29 --> $DIR/const-generics-range.rs:24: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: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
37 error: `RangeTo<usize>` is forbidden as the type of a const generic parameter
38 --> $DIR/const-generics-range.rs:29: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: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
46 error: `RangeToInclusive<usize>` is forbidden as the type of a const generic parameter
47 --> $DIR/const-generics-range.rs:34: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: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
55 error: aborting due to 6 previous errors