]> git.lizzy.rs Git - rust.git/blob - src/test/ui/infinite/infinite-vec-type-recursion.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / infinite / infinite-vec-type-recursion.stderr
1 error[E0391]: cycle detected when computing type of `X`
2   --> $DIR/infinite-vec-type-recursion.rs:1:14
3    |
4 LL | type X = Vec<X>;
5    |              ^
6    |
7    = note: ...which again requires computing type of `X`, completing the cycle
8 note: cycle used when collecting item types in top-level module
9   --> $DIR/infinite-vec-type-recursion.rs:1:1
10    |
11 LL | / type X = Vec<X>;
12 LL | |
13 LL | |
14 LL | | fn main() { let b: X = Vec::new(); }
15    | |____________________________________^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0391`.