]> git.lizzy.rs Git - rust.git/blob - src/test/ui/sized-cycle-note.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / sized-cycle-note.stderr
1 error[E0072]: recursive type `Baz` has infinite size
2   --> $DIR/sized-cycle-note.rs:9:1
3    |
4 LL | struct Baz { q: Option<Foo> }
5    | ^^^^^^^^^^   -------------- recursive without indirection
6    | |
7    | recursive type has infinite size
8    |
9    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Baz` representable
10
11 error[E0072]: recursive type `Foo` has infinite size
12   --> $DIR/sized-cycle-note.rs:11:1
13    |
14 LL | struct Foo { q: Option<Baz> }
15    | ^^^^^^^^^^   -------------- recursive without indirection
16    | |
17    | recursive type has infinite size
18    |
19    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Foo` representable
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0072`.