11error[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
33 |
44LL | const move || {
55 | ^^^^^
@@ -15,46 +15,15 @@ LL | const fn test() -> impl ~const Fn() {
1515 | ^^^^
1616
1717error[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
1919 |
2020LL | assert_eq!(first, &b'f');
2121 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&u8 == &u8`
2222 |
2323 = help: the trait `~const PartialEq<&u8>` is not implemented for `&u8`
2424 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2525
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
5827
59- Some errors have detailed explanations: E0277, E0391, E0658.
28+ Some errors have detailed explanations: E0277, E0658.
6029For more information about an error, try `rustc --explain E0277`.
0 commit comments