]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/std/const-generics-range.min.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / std / const-generics-range.min.stderr
1 error: `std::ops::Range<usize>` is forbidden as the type of a const generic parameter
2 --> $DIR/const-generics-range.rs:7:24
3 |
4 LL | struct _Range<const R: std::ops::Range<usize>>;
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: the only supported types are integers, `bool` and `char`
8 = help: more complex types are supported with `#![feature(const_generics)]`
9
10 error: `RangeFrom<usize>` is forbidden as the type of a const generic parameter
11 --> $DIR/const-generics-range.rs:12:28
12 |
13 LL | struct _RangeFrom<const R: std::ops::RangeFrom<usize>>;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = note: the only supported types are integers, `bool` and `char`
17 = help: more complex types are supported with `#![feature(const_generics)]`
18
19 error: `RangeFull` is forbidden as the type of a const generic parameter
20 --> $DIR/const-generics-range.rs:17:28
21 |
22 LL | struct _RangeFull<const R: std::ops::RangeFull>;
23 | ^^^^^^^^^^^^^^^^^^^
24 |
25 = note: the only supported types are integers, `bool` and `char`
26 = help: more complex types are supported with `#![feature(const_generics)]`
27
28 error: `RangeInclusive<usize>` is forbidden as the type of a const generic parameter
29 --> $DIR/const-generics-range.rs:23:33
30 |
31 LL | struct _RangeInclusive<const R: std::ops::RangeInclusive<usize>>;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 |
34 = note: the only supported types are integers, `bool` and `char`
35 = help: more complex types are supported with `#![feature(const_generics)]`
36
37 error: `RangeTo<usize>` is forbidden as the type of a const generic parameter
38 --> $DIR/const-generics-range.rs:28:26
39 |
40 LL | struct _RangeTo<const R: std::ops::RangeTo<usize>>;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^
42 |
43 = note: the only supported types are integers, `bool` and `char`
44 = help: more complex types are supported with `#![feature(const_generics)]`
45
46 error: `RangeToInclusive<usize>` is forbidden as the type of a const generic parameter
47 --> $DIR/const-generics-range.rs:33:35
48 |
49 LL | struct _RangeToInclusive<const R: std::ops::RangeToInclusive<usize>>;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 |
52 = note: the only supported types are integers, `bool` and `char`
53 = help: more complex types are supported with `#![feature(const_generics)]`
54
55 error: aborting due to 6 previous errors
56