fork/rust

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

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

master
1.8 KiB39 linesraw
1error[E0741]: `std::ops::Range<usize>` must implement `ConstParamTy` to be used 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
7error[E0741]: `RangeFrom<usize>` must implement `ConstParamTy` to be used as the type of a const generic parameter
8  --> $DIR/const-generics-range.rs:13:28
9   |
10LL | struct _RangeFrom<const R: std::ops::RangeFrom<usize>>;
11   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error[E0741]: `RangeFull` must implement `ConstParamTy` to be used as the type of a const generic parameter
14  --> $DIR/const-generics-range.rs:18:28
15   |
16LL | struct _RangeFull<const R: std::ops::RangeFull>;
17   |                            ^^^^^^^^^^^^^^^^^^^
18
19error[E0741]: `RangeInclusive<usize>` must implement `ConstParamTy` to be used as the type of a const generic parameter
20  --> $DIR/const-generics-range.rs:24:33
21   |
22LL | struct _RangeInclusive<const R: std::ops::RangeInclusive<usize>>;
23   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25error[E0741]: `RangeTo<usize>` must implement `ConstParamTy` to be used as the type of a const generic parameter
26  --> $DIR/const-generics-range.rs:29:26
27   |
28LL | struct _RangeTo<const R: std::ops::RangeTo<usize>>;
29   |                          ^^^^^^^^^^^^^^^^^^^^^^^^
30
31error[E0741]: `RangeToInclusive<usize>` must implement `ConstParamTy` to be used as the type of a const generic parameter
32  --> $DIR/const-generics-range.rs:34:35
33   |
34LL | struct _RangeToInclusive<const R: std::ops::RangeToInclusive<usize>>;
35   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37error: aborting due to 6 previous errors
38
39For more information about this error, try `rustc --explain E0741`.