1+ error: expected `const`, found `From`
2+ |
3+ LL | const fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T> + ~From Destruct) {}
4+ | ^^^^ expected `const`
5+
6+ error[E0407]: method `huh` is not a member of trait `Foo`
7+ |
8+ LL | / fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
9+ LL | | 123
10+ LL | | }
11+ | |_____^ not a member of trait `Foo`
12+
13+ error[E0405]: cannot find trait `Index` in this scope
14+ |
15+ LL | fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output;
16+ | ^^^^^ not found in this scope
17+ |
18+ help: consider importing this trait
19+ |
20+ LL + use std::ops::Index;
21+ |
22+
23+ error[E0405]: cannot find trait `Index` in this scope
24+ |
25+ LL | fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output;
26+ | ^^^^^ not found in this scope
27+ |
28+ help: consider importing this trait
29+ |
30+ LL + use std::ops::Index;
31+ |
32+
33+ error[E0576]: cannot find method or associated constant `huh` in trait `Foo`
34+ |
35+ LL | fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output;
36+ | ------------------------------------------------------------------------- associated function `foo` defined here
37+ ...
38+ LL | let x = <() as Foo>::huh();
39+ | ^^^
40+ | |
41+ | not found in `Foo`
42+ | help: maybe you meant this associated function: `foo`
43+
44+ |
45+ |
46+
47+ |
48+
49+ error: using `#![feature(effects)]` without enabling next trait solver globally
50+ |
51+ = note: the next trait solver must be enabled globally for the effects feature to work correctly
52+ = help: use `-Znext-solver` to enable
53+
54+ error: `~const` can only be applied to `#[const_trait]` traits
55+ |
56+ LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
57+ | ^^^^^^^^^
58+
59+ error: `~const` can only be applied to `#[const_trait]` traits
60+ |
61+ LL | -> impl ~const PartialEq + ~const Destruct
62+ | ^^^^^^^^^
63+
64+ error: `~const` can only be applied to `#[const_trait]` traits
65+ |
66+ LL | const fn cmp(a: &impl ~const PartialEq) -> bool {
67+ | ^^^^^^^^^
68+
69+ error: `~const` can only be applied to `#[const_trait]` traits
70+ |
71+ LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
72+ | ^^^^^^^^
73+
74+ error: `~const` can only be applied to `#[const_trait]` traits
75+ |
76+ LL | const fn apit(_: impl ~const T + ~const Destruct) {}
77+ | ^^^^^^^^
78+
79+ error: `~const` can only be applied to `#[const_trait]` traits
80+ |
81+ LL | -> impl ~const PartialEq + ~const Destruct
82+ | ^^^^^^^^
83+
84+ error: `~const` can only be applied to `#[const_trait]` traits
85+ |
86+ LL | -> impl ~const PartialEq + ~const Destruct
87+ | ^^^^^^^^^
88+ |
89+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
90+
91+ error: `~const` can only be applied to `#[const_trait]` traits
92+ |
93+ LL | -> impl ~const PartialEq + ~const Destruct
94+ | ^^^^^^^^
95+ |
96+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
97+
98+ error: `~const` can only be applied to `#[const_trait]` traits
99+ |
100+ LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
101+ | ^^^^^^^^^
102+ |
103+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
104+
105+ error: `~const` can only be applied to `#[const_trait]` traits
106+ |
107+ LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
108+ | ^^^^^^^^
109+ |
110+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
111+
112+ error: `~const` can only be applied to `#[const_trait]` traits
113+ |
114+ LL | const fn wrap(x: impl ~const PartialEq + ~const Destruct)
115+ | ^^^^^^^^^
116+
117+ error: `~const` can only be applied to `#[const_trait]` traits
118+ |
119+ LL | const fn wrap(x: impl ~const PartialEq + ~const Destruct)
120+ | ^^^^^^^^
121+
122+ error[E0046]: not all trait items implemented, missing: `foo`
123+ |
124+ LL | fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output;
125+ | ------------------------------------------------------------------------- `foo` from trait
126+ ...
127+ LL | impl const Foo for () {
128+ | ^^^^^^^^^^^^^^^^^^^^^ missing `foo` in implementation
129+
130+ error[E0493]: destructor of `impl ~const T + ~const Destruct` cannot be evaluated at compile-time
131+ |
132+ LL | const fn apit(_: impl ~const T + ~const Destruct) {}
133+ | ^ - value is dropped here
134+ | |
135+ | the destructor for this type cannot be evaluated in constant functions
136+
137+
138+ For more information about an error, try `rustc --explain E0046`.
0 commit comments