You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/traits/const-traits/ice-120503-async-const-method.stderr
+2-31
Original file line number
Diff line number
Diff line change
@@ -55,36 +55,7 @@ LL | main8().await;
55
55
LL | fn main() {}
56
56
| --------- similarly named function `main` defined here
57
57
58
-
error[E0391]: cycle detected when computing type of opaque `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar::{opaque#0}`
59
-
--> $DIR/ice-120503-async-const-method.rs:6:5
60
-
|
61
-
LL | async const fn bar(&self) {
62
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
63
-
|
64
-
note: ...which requires borrow-checking `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar`...
65
-
--> $DIR/ice-120503-async-const-method.rs:6:5
66
-
|
67
-
LL | async const fn bar(&self) {
68
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
69
-
note: ...which requires promoting constants in MIR for `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar`...
70
-
--> $DIR/ice-120503-async-const-method.rs:6:5
71
-
|
72
-
LL | async const fn bar(&self) {
73
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
74
-
note: ...which requires const checking `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar`...
75
-
--> $DIR/ice-120503-async-const-method.rs:6:5
76
-
|
77
-
LL | async const fn bar(&self) {
78
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
79
-
= note: ...which again requires computing type of opaque `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar::{opaque#0}`, completing the cycle
80
-
note: cycle used when computing type of `<impl at $DIR/ice-120503-async-const-method.rs:5:1: 5:21>::bar::{opaque#0}`
81
-
--> $DIR/ice-120503-async-const-method.rs:6:5
82
-
|
83
-
LL | async const fn bar(&self) {
84
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
85
-
= 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
86
-
87
-
error: aborting due to 6 previous errors
58
+
error: aborting due to 5 previous errors
88
59
89
-
Some errors have detailed explanations: E0379, E0391, E0407, E0425.
60
+
Some errors have detailed explanations: E0379, E0407, E0425.
90
61
For more information about an error, try `rustc --explain E0379`.
0 commit comments