|
1 | 1 | error[E0425]: cannot find value `Foo` in this scope
|
2 |
| - --> $DIR/layout-error.rs:26:17 |
| 2 | + --> $DIR/layout-error.rs:28:17 |
3 | 3 | |
|
4 | 4 | LL | let a = Foo;
|
5 | 5 | | ^^^ not found in this scope
|
6 | 6 |
|
7 |
| -error: aborting due to 1 previous error |
| 7 | +error[E0391]: cycle detected when computing type of `F::{opaque#0}` |
| 8 | + --> $DIR/layout-error.rs:19:14 |
| 9 | + | |
| 10 | +LL | pub type F = impl Future; |
| 11 | + | ^^^^^^^^^^^ |
| 12 | + | |
| 13 | +note: ...which requires computing type of opaque `F::{opaque#0}`... |
| 14 | + --> $DIR/layout-error.rs:19:14 |
| 15 | + | |
| 16 | +LL | pub type F = impl Future; |
| 17 | + | ^^^^^^^^^^^ |
| 18 | +note: ...which requires borrow-checking `foo`... |
| 19 | + --> $DIR/layout-error.rs:23:1 |
| 20 | + | |
| 21 | +LL | / fn foo() |
| 22 | +LL | | where |
| 23 | +LL | | F:, |
| 24 | + | |_______^ |
| 25 | +note: ...which requires promoting constants in MIR for `foo`... |
| 26 | + --> $DIR/layout-error.rs:23:1 |
| 27 | + | |
| 28 | +LL | / fn foo() |
| 29 | +LL | | where |
| 30 | +LL | | F:, |
| 31 | + | |_______^ |
| 32 | +note: ...which requires checking if `foo` contains FFI-unwind calls... |
| 33 | + --> $DIR/layout-error.rs:23:1 |
| 34 | + | |
| 35 | +LL | / fn foo() |
| 36 | +LL | | where |
| 37 | +LL | | F:, |
| 38 | + | |_______^ |
| 39 | +note: ...which requires building MIR for `foo`... |
| 40 | + --> $DIR/layout-error.rs:23:1 |
| 41 | + | |
| 42 | +LL | / fn foo() |
| 43 | +LL | | where |
| 44 | +LL | | F:, |
| 45 | + | |_______^ |
| 46 | + = note: ...which requires computing layout of `&Task<F>`... |
| 47 | + = note: ...which requires normalizing `&Task<F>`... |
| 48 | + = note: ...which again requires computing type of `F::{opaque#0}`, completing the cycle |
| 49 | + = note: cycle used when normalizing `Task<F>` |
| 50 | + = 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 |
| 51 | + |
| 52 | +error: aborting due to 2 previous errors |
8 | 53 |
|
9 |
| -For more information about this error, try `rustc --explain E0425`. |
| 54 | +Some errors have detailed explanations: E0391, E0425. |
| 55 | +For more information about an error, try `rustc --explain E0391`. |
0 commit comments