1 error[E0308]: mismatched types
2 --> $DIR/infinite-autoderef.rs:20:13
7 | cyclic type of infinite size
8 | help: try using a conversion method: `box x.to_string()`
10 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
11 --> $DIR/infinite-autoderef.rs:25:5
14 | ^^^^^^^ deref recursion limit reached
16 = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
18 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
19 --> $DIR/infinite-autoderef.rs:25:9
22 | ^^^ deref recursion limit reached
24 = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
26 error[E0609]: no field `foo` on type `Foo`
27 --> $DIR/infinite-autoderef.rs:25:9
32 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
33 --> $DIR/infinite-autoderef.rs:26:9
36 | ^^^ deref recursion limit reached
38 = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
40 error[E0599]: no method named `bar` found for type `Foo` in the current scope
41 --> $DIR/infinite-autoderef.rs:26:9
44 | ----------- method `bar` not found for this
47 | ^^^ method not found in `Foo`
49 error: aborting due to 6 previous errors
51 Some errors have detailed explanations: E0055, E0308, E0599, E0609.
52 For more information about an error, try `rustc --explain E0055`.