@@ -4,94 +4,6 @@ error[E0425]: cannot find value `Foo` in this scope
4
4
LL | let a = Foo;
5
5
| ^^^ not found in this scope
6
6
7
- error[E0391]: cycle detected when computing type of `POOL`
8
- --> $DIR/layout-error.rs:34:14
9
- |
10
- LL | static POOL: Task<F> = Task::new();
11
- | ^^^^^^^
12
- |
13
- = note: ...which requires evaluating trait selection obligation `Task<F>: core::marker::Sync`...
14
- note: ...which requires computing type of opaque `F::{opaque#0}`...
15
- --> $DIR/layout-error.rs:19:14
16
- |
17
- LL | pub type F = impl Future;
18
- | ^^^^^^^^^^^
19
- note: ...which requires borrow-checking `foo`...
20
- --> $DIR/layout-error.rs:22:1
21
- |
22
- LL | / fn foo()
23
- LL | | where
24
- LL | | F:,
25
- | |_______^
26
- note: ...which requires promoting constants in MIR for `foo`...
27
- --> $DIR/layout-error.rs:22:1
28
- |
29
- LL | / fn foo()
30
- LL | | where
31
- LL | | F:,
32
- | |_______^
33
- note: ...which requires checking if `foo` contains FFI-unwind calls...
34
- --> $DIR/layout-error.rs:22:1
35
- |
36
- LL | / fn foo()
37
- LL | | where
38
- LL | | F:,
39
- | |_______^
40
- note: ...which requires building MIR for `foo`...
41
- --> $DIR/layout-error.rs:22:1
42
- |
43
- LL | / fn foo()
44
- LL | | where
45
- LL | | F:,
46
- | |_______^
47
- note: ...which requires match-checking `foo`...
48
- --> $DIR/layout-error.rs:22:1
49
- |
50
- LL | / fn foo()
51
- LL | | where
52
- LL | | F:,
53
- | |_______^
54
- note: ...which requires type-checking `foo`...
55
- --> $DIR/layout-error.rs:22:1
56
- |
57
- LL | / fn foo()
58
- LL | | where
59
- LL | | F:,
60
- | |_______^
61
- = note: ...which again requires computing type of `POOL`, completing the cycle
62
- note: cycle used when checking that `POOL` is well-formed
63
- --> $DIR/layout-error.rs:34:1
64
- |
65
- LL | static POOL: Task<F> = Task::new();
66
- | ^^^^^^^^^^^^^^^^^^^^
67
- = 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
68
-
69
- error[E0391]: cycle detected when computing type of `POOL`
70
- --> $DIR/layout-error.rs:34:14
71
- |
72
- LL | static POOL: Task<F> = Task::new();
73
- | ^^^^^^^
74
- |
75
- = note: ...which requires evaluating trait selection obligation `Task<F>: core::marker::Sync`...
76
- note: ...which requires computing type of opaque `F::{opaque#0}`...
77
- --> $DIR/layout-error.rs:19:14
78
- |
79
- LL | pub type F = impl Future;
80
- | ^^^^^^^^^^^
81
- note: ...which requires computing the opaque types defined by `POOL`...
82
- --> $DIR/layout-error.rs:34:1
83
- |
84
- LL | static POOL: Task<F> = Task::new();
85
- | ^^^^^^^^^^^^^^^^^^^^
86
- = note: ...which again requires computing type of `POOL`, completing the cycle
87
- note: cycle used when checking that `POOL` is well-formed
88
- --> $DIR/layout-error.rs:34:1
89
- |
90
- LL | static POOL: Task<F> = Task::new();
91
- | ^^^^^^^^^^^^^^^^^^^^
92
- = 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
93
-
94
- error: aborting due to 3 previous errors
7
+ error: aborting due to 1 previous error
95
8
96
- Some errors have detailed explanations: E0391, E0425.
97
- For more information about an error, try `rustc --explain E0391`.
9
+ For more information about this error, try `rustc --explain E0425`.
0 commit comments