error[E0391]: cycle detected when computing type of `` --> $DIR/issue-23305.rs:5:16 | LL | impl dyn ToNbt {} | ^^^^ | = note: ...which immediately requires computing type of `` again note: cycle used when collecting item types in top-level module --> $DIR/issue-23305.rs:1:1 | LL | / pub trait ToNbt { LL | | fn new(val: T) -> Self; LL | | } LL | | ... | LL | | LL | | fn main() {} | |____________^ error: aborting due to previous error For more information about this error, try `rustc --explain E0391`.