1
1
error[E0658]: const closures are experimental
2
- --> $DIR/ice-112822-expected-type-for-param.rs:5 :5
2
+ --> $DIR/ice-112822-expected-type-for-param.rs:4 :5
3
3
|
4
4
LL | const move || {
5
5
| ^^^^^
@@ -15,46 +15,15 @@ LL | const fn test() -> impl ~const Fn() {
15
15
| ^^^^
16
16
17
17
error[E0277]: can't compare `&u8` with `&u8`
18
- --> $DIR/ice-112822-expected-type-for-param.rs:10 :17
18
+ --> $DIR/ice-112822-expected-type-for-param.rs:9 :17
19
19
|
20
20
LL | assert_eq!(first, &b'f');
21
21
| ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&u8 == &u8`
22
22
|
23
23
= help: the trait `~const PartialEq<&u8>` is not implemented for `&u8`
24
24
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
25
25
26
- error[E0391]: cycle detected when computing type of opaque `test::{opaque#0}`
27
- --> $DIR/ice-112822-expected-type-for-param.rs:3:20
28
- |
29
- LL | const fn test() -> impl ~const Fn() {
30
- | ^^^^^^^^^^^^^^^^
31
- |
32
- note: ...which requires borrow-checking `test`...
33
- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
34
- |
35
- LL | const fn test() -> impl ~const Fn() {
36
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
- note: ...which requires promoting constants in MIR for `test`...
38
- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
39
- |
40
- LL | const fn test() -> impl ~const Fn() {
41
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
- note: ...which requires const checking `test`...
43
- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
44
- |
45
- LL | const fn test() -> impl ~const Fn() {
46
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
- = note: ...which requires computing whether `test::{opaque#0}` is freeze...
48
- = note: ...which requires evaluating trait selection obligation `test::{opaque#0}: core::marker::Freeze`...
49
- = note: ...which again requires computing type of opaque `test::{opaque#0}`, completing the cycle
50
- note: cycle used when computing type of `test::{opaque#0}`
51
- --> $DIR/ice-112822-expected-type-for-param.rs:3:20
52
- |
53
- LL | const fn test() -> impl ~const Fn() {
54
- | ^^^^^^^^^^^^^^^^
55
- = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
56
-
57
- error: aborting due to 4 previous errors
26
+ error: aborting due to 3 previous errors
58
27
59
- Some errors have detailed explanations: E0277, E0391, E0658.
28
+ Some errors have detailed explanations: E0277, E0658.
60
29
For more information about an error, try `rustc --explain E0277`.
0 commit comments