2024-03-22 13:21:50 -05:00
|
|
|
error[E0391]: cycle detected when computing layout of `Foo`
|
|
|
|
|
|
|
|
|
= note: ...which requires computing layout of `<&'static Foo as core::ops::deref::Deref>::Target`...
|
|
|
|
= note: ...which again requires computing layout of `Foo`, completing the cycle
|
|
|
|
note: cycle used when const-evaluating + checking `_`
|
2024-07-02 08:28:16 -05:00
|
|
|
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
2024-03-22 13:21:50 -05:00
|
|
|
|
|
|
|
|
LL | const _: *const Foo = 0 as _;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
= 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
|
|
|
|
|
2024-06-22 09:26:30 -05:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2024-07-02 08:28:16 -05:00
|
|
|
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
2024-03-22 13:21:50 -05:00
|
|
|
|
|
|
|
|
LL | const _: *const Foo = 0 as _;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0080, E0391.
|
|
|
|
For more information about an error, try `rustc --explain E0080`.
|