]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-23305.stderr
Auto merge of #93455 - asquared31415:vec-zero-opts, r=thomcc
[rust.git] / src / test / ui / resolve / issue-23305.stderr
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
3    |
4 LL | impl dyn ToNbt<Self> {}
5    |                ^^^^
6    |
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
10    |
11 LL | / pub trait ToNbt<T> {
12 LL | |     fn new(val: T) -> Self;
13 LL | | }
14 LL | |
15 ...  |
16 LL | |
17 LL | | fn main() {}
18    | |____________^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0391`.