11error[E0658]: const closures are experimental
2- --> $DIR/ice-112822-expected-type-for-param.rs:7 :5
2+ --> $DIR/ice-112822-expected-type-for-param.rs:6 :5
33 |
44LL | const move || {
55 | ^^^^^
@@ -23,46 +23,15 @@ LL | const fn test() -> impl ~const Fn() {
2323 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
2424
2525error[E0277]: can't compare `&u8` with `&u8`
26- --> $DIR/ice-112822-expected-type-for-param.rs:12 :17
26+ --> $DIR/ice-112822-expected-type-for-param.rs:11 :17
2727 |
2828LL | assert_eq!(first, &b'f');
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&u8 == &u8`
3030 |
3131 = help: the trait `~const PartialEq<&u8>` is not implemented for `&u8`
3232 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
3333
34- error[E0391]: cycle detected when computing type of opaque `test::{opaque#0}`
35- --> $DIR/ice-112822-expected-type-for-param.rs:3:20
36- |
37- LL | const fn test() -> impl ~const Fn() {
38- | ^^^^^^^^^^^^^^^^
39- |
40- note: ...which requires borrow-checking `test`...
41- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
42- |
43- LL | const fn test() -> impl ~const Fn() {
44- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45- note: ...which requires promoting constants in MIR for `test`...
46- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
47- |
48- LL | const fn test() -> impl ~const Fn() {
49- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50- note: ...which requires const checking `test`...
51- --> $DIR/ice-112822-expected-type-for-param.rs:3:1
52- |
53- LL | const fn test() -> impl ~const Fn() {
54- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55- = note: ...which requires computing whether `test::{opaque#0}` is freeze...
56- = note: ...which requires evaluating trait selection obligation `test::{opaque#0}: core::marker::Freeze`...
57- = note: ...which again requires computing type of opaque `test::{opaque#0}`, completing the cycle
58- note: cycle used when computing type of `test::{opaque#0}`
59- --> $DIR/ice-112822-expected-type-for-param.rs:3:20
60- |
61- LL | const fn test() -> impl ~const Fn() {
62- | ^^^^^^^^^^^^^^^^
63- = 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
64-
65- error: aborting due to 5 previous errors
34+ error: aborting due to 4 previous errors
6635
67- Some errors have detailed explanations: E0277, E0391, E0658.
36+ Some errors have detailed explanations: E0277, E0658.
6837For more information about an error, try `rustc --explain E0277`.
0 commit comments