summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-23305.stderr
blob: 20aeb7b995a6195b46c2b27429e55a0c8531c1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0391]: cycle detected when computing type of `<impl at $DIR/issue-23305.rs:5:1: 5:21>`
  --> $DIR/issue-23305.rs:5:16
   |
LL | impl dyn ToNbt<Self> {}
   |                ^^^^
   |
   = note: ...which immediately requires computing type of `<impl at $DIR/issue-23305.rs:5:1: 5:21>` again
note: cycle used when collecting item types in top-level module
  --> $DIR/issue-23305.rs:1:1
   |
LL | / pub trait ToNbt<T> {
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`.