|
| 1 | +error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}` |
| 2 | + --> $DIR/param-env-region-infer.rs:14:60 |
| 3 | + | |
| 4 | +LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a { |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | +note: ...which requires type-checking `make_dyn_star`... |
| 8 | + --> $DIR/param-env-region-infer.rs:14:1 |
| 9 | + | |
| 10 | +LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a { |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + = note: ...which requires computing layout of `make_dyn_star::{opaque#0}`... |
| 13 | + = note: ...which requires normalizing `make_dyn_star::{opaque#0}`... |
| 14 | + = note: ...which again requires computing type of `make_dyn_star::{opaque#0}`, completing the cycle |
| 15 | +note: cycle used when checking item types in top-level module |
| 16 | + --> $DIR/param-env-region-infer.rs:8:1 |
| 17 | + | |
| 18 | +LL | / #![feature(dyn_star, pointer_like_trait)] |
| 19 | +LL | | #![allow(incomplete_features)] |
| 20 | +LL | | |
| 21 | +LL | | use std::fmt::Debug; |
| 22 | +... | |
| 23 | +LL | | |
| 24 | +LL | | fn main() {} |
| 25 | + | |____________^ |
| 26 | + |
| 27 | +error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}` |
| 28 | + --> $DIR/param-env-region-infer.rs:14:60 |
| 29 | + | |
| 30 | +LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a { |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | + | |
| 33 | +note: ...which requires type-checking `make_dyn_star`... |
| 34 | + --> $DIR/param-env-region-infer.rs:14:1 |
| 35 | + | |
| 36 | +LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a { |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 | + = note: ...which requires computing layout of `make_dyn_star::{opaque#0}`... |
| 39 | + = note: ...which requires normalizing `make_dyn_star::{opaque#0}`... |
| 40 | + = note: ...which again requires computing type of `make_dyn_star::{opaque#0}`, completing the cycle |
| 41 | +note: cycle used when checking item types in top-level module |
| 42 | + --> $DIR/param-env-region-infer.rs:8:1 |
| 43 | + | |
| 44 | +LL | / #![feature(dyn_star, pointer_like_trait)] |
| 45 | +LL | | #![allow(incomplete_features)] |
| 46 | +LL | | |
| 47 | +LL | | use std::fmt::Debug; |
| 48 | +... | |
| 49 | +LL | | |
| 50 | +LL | | fn main() {} |
| 51 | + | |____________^ |
| 52 | + |
| 53 | +error: aborting due to 2 previous errors |
| 54 | + |
| 55 | +For more information about this error, try `rustc --explain E0391`. |
0 commit comments