|
24 | 24 | LL | }
|
25 | 25 | | - temporary value is freed at the end of this statement
|
26 | 26 |
|
27 |
| -error[E0391]: cycle detected when computing type of opaque `helper::Foo::{opaque#0}` |
28 |
| - --> $DIR/const-promoted-opaque.rs:14:20 |
29 |
| - | |
30 |
| -LL | pub type Foo = impl Sized; |
31 |
| - | ^^^^^^^^^^ |
32 |
| - | |
33 |
| -note: ...which requires borrow-checking `helper::FOO`... |
34 |
| - --> $DIR/const-promoted-opaque.rs:20:5 |
35 |
| - | |
36 |
| -LL | pub const FOO: Foo = std::sync::atomic::AtomicU8::new(42); |
37 |
| - | ^^^^^^^^^^^^^^^^^^ |
38 |
| -note: ...which requires promoting constants in MIR for `helper::FOO`... |
39 |
| - --> $DIR/const-promoted-opaque.rs:20:5 |
40 |
| - | |
41 |
| -LL | pub const FOO: Foo = std::sync::atomic::AtomicU8::new(42); |
42 |
| - | ^^^^^^^^^^^^^^^^^^ |
43 |
| -note: ...which requires const checking `helper::FOO`... |
44 |
| - --> $DIR/const-promoted-opaque.rs:20:5 |
45 |
| - | |
46 |
| -LL | pub const FOO: Foo = std::sync::atomic::AtomicU8::new(42); |
47 |
| - | ^^^^^^^^^^^^^^^^^^ |
48 |
| - = note: ...which again requires computing type of opaque `helper::Foo::{opaque#0}`, completing the cycle |
49 |
| -note: cycle used when computing type of `helper::Foo::{opaque#0}` |
50 |
| - --> $DIR/const-promoted-opaque.rs:14:20 |
51 |
| - | |
52 |
| -LL | pub type Foo = impl Sized; |
53 |
| - | ^^^^^^^^^^ |
54 |
| - = 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 |
55 |
| - |
56 |
| -error: aborting due to 4 previous errors |
| 27 | +error: aborting due to 3 previous errors |
57 | 28 |
|
58 |
| -Some errors have detailed explanations: E0391, E0492, E0493, E0716. |
59 |
| -For more information about an error, try `rustc --explain E0391`. |
| 29 | +Some errors have detailed explanations: E0492, E0493, E0716. |
| 30 | +For more information about an error, try `rustc --explain E0492`. |
0 commit comments