1
1
error[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
3
3
|
4
4
LL | const move || {
5
5
| ^^^^^
@@ -23,46 +23,15 @@ LL | const fn test() -> impl ~const Fn() {
23
23
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
24
24
25
25
error[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
27
27
|
28
28
LL | assert_eq!(first, &b'f');
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&u8 == &u8`
30
30
|
31
31
= help: the trait `~const PartialEq<&u8>` is not implemented for `&u8`
32
32
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
33
33
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
66
35
67
- Some errors have detailed explanations: E0277, E0391, E0658.
36
+ Some errors have detailed explanations: E0277, E0658.
68
37
For more information about an error, try `rustc --explain E0277`.
0 commit comments