2023-07-12 21:59:01 -05:00
|
|
|
error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}`
|
2023-07-04 13:49:13 -05:00
|
|
|
--> $DIR/param-env-region-infer.rs:16:60
|
|
|
|
|
|
|
|
|
LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: ...which requires type-checking `make_dyn_star`...
|
|
|
|
--> $DIR/param-env-region-infer.rs:16:1
|
|
|
|
|
|
|
|
|
LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-07-22 00:35:57 -05:00
|
|
|
= note: ...which requires computing layout of `make_dyn_star::{opaque#0}`...
|
2023-07-04 13:49:13 -05:00
|
|
|
= note: ...which requires normalizing `make_dyn_star::{opaque#0}`...
|
|
|
|
= note: ...which again requires computing type of `make_dyn_star::{opaque#0}`, completing the cycle
|
|
|
|
note: cycle used when checking item types in top-level module
|
|
|
|
--> $DIR/param-env-region-infer.rs:10:1
|
|
|
|
|
|
|
|
|
LL | / #![feature(dyn_star, pointer_like_trait)]
|
|
|
|
LL | | #![allow(incomplete_features)]
|
|
|
|
LL | |
|
|
|
|
LL | | use std::fmt::Debug;
|
|
|
|
... |
|
|
|
|
LL | |
|
|
|
|
LL | | fn main() {}
|
|
|
|
| |____________^
|
2023-07-18 20:53:34 -05:00
|
|
|
= 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
|
2023-07-04 13:49:13 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|