fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.6 KiB56 linesraw
1error: `std::ops::Range<usize>` is forbidden as the type of a const generic parameter
2  --> $DIR/const-generics-range.rs:8:24
3   |
4LL | struct _Range<const R: std::ops::Range<usize>>;
5   |                        ^^^^^^^^^^^^^^^^^^^^^^
6   |
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
9
10error: `RangeFrom<usize>` is forbidden as the type of a const generic parameter
11  --> $DIR/const-generics-range.rs:13:28
12   |
13LL | struct _RangeFrom<const R: std::ops::RangeFrom<usize>>;
14   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
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
18
19error: `RangeFull` is forbidden as the type of a const generic parameter
20  --> $DIR/const-generics-range.rs:18:28
21   |
22LL | struct _RangeFull<const R: std::ops::RangeFull>;
23   |                            ^^^^^^^^^^^^^^^^^^^
24   |
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
27
28error: `RangeInclusive<usize>` is forbidden as the type of a const generic parameter
29  --> $DIR/const-generics-range.rs:24:33
30   |
31LL | struct _RangeInclusive<const R: std::ops::RangeInclusive<usize>>;
32   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33   |
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
36
37error: `RangeTo<usize>` is forbidden as the type of a const generic parameter
38  --> $DIR/const-generics-range.rs:29:26
39   |
40LL | struct _RangeTo<const R: std::ops::RangeTo<usize>>;
41   |                          ^^^^^^^^^^^^^^^^^^^^^^^^
42   |
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
45
46error: `RangeToInclusive<usize>` is forbidden as the type of a const generic parameter
47  --> $DIR/const-generics-range.rs:34:35
48   |
49LL | struct _RangeToInclusive<const R: std::ops::RangeToInclusive<usize>>;
50   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51   |
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
54
55error: aborting due to 6 previous errors
56