1 error[E0308]: mismatched types
2 --> $DIR/infinite-autoderef.rs:19:13
5 | ^^^^^^^^^^^ cyclic type of infinite size
7 help: consider unboxing the value
12 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
13 --> $DIR/infinite-autoderef.rs:24:5
16 | ^^^^^^^ deref recursion limit reached
18 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
20 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
21 --> $DIR/infinite-autoderef.rs:24:9
24 | ^^^ deref recursion limit reached
26 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
28 error[E0609]: no field `foo` on type `Foo`
29 --> $DIR/infinite-autoderef.rs:24:9
34 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
35 --> $DIR/infinite-autoderef.rs:25:9
38 | ^^^ deref recursion limit reached
40 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
42 error[E0599]: no method named `bar` found for struct `Foo` in the current scope
43 --> $DIR/infinite-autoderef.rs:25:9
46 | ---------- method `bar` not found for this struct
49 | ^^^ method not found in `Foo`
51 error: aborting due to 6 previous errors
53 Some errors have detailed explanations: E0055, E0308, E0599, E0609.
54 For more information about an error, try `rustc --explain E0055`.