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