File: suggest_feature_only_when_possible.stderr

package info (click to toggle)
rustc 1.86.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 913,560 kB
  • sloc: xml: 158,127; python: 35,921; javascript: 19,689; sh: 19,600; cpp: 18,906; ansic: 13,124; asm: 4,376; makefile: 708; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (94 lines) | stat: -rw-r--r-- 3,434 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
error: `&'static mut ()` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:6:19
   |
LL | fn uwu_0<const N: &'static mut ()>() {}
   |                   ^^^^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: `&'static u32` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:15:19
   |
LL | fn owo_0<const N: &'static u32>() {}
   |                   ^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |
help: add `#![feature(unsized_const_params)]` to the crate attributes to enable references to implement the `ConstParamTy` trait
   |
LL + #![feature(unsized_const_params)]
   |

error: `Meow` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:23:20
   |
LL | fn meow_0<const N: Meow>() {}
   |                    ^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |

error: `&'static Meow` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:25:20
   |
LL | fn meow_1<const N: &'static Meow>() {}
   |                    ^^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |
help: add `#![feature(unsized_const_params)]` to the crate attributes to enable references to implement the `ConstParamTy` trait
   |
LL + #![feature(unsized_const_params)]
   |

error: `[Meow; 100]` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:27:20
   |
LL | fn meow_2<const N: [Meow; 100]>() {}
   |                    ^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: `(Meow, u8)` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:29:20
   |
LL | fn meow_3<const N: (Meow, u8)>() {}
   |                    ^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: `(Meow, String)` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:34:20
   |
LL | fn meow_4<const N: (Meow, String)>() {}
   |                    ^^^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: `String` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:38:19
   |
LL | fn nya_0<const N: String>() {}
   |                   ^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: `Vec<u32>` is forbidden as the type of a const generic parameter
  --> $DIR/suggest_feature_only_when_possible.rs:40:19
   |
LL | fn nya_1<const N: Vec<u32>>() {}
   |                   ^^^^^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: aborting due to 9 previous errors