error[E0055]: reached the recursion limit while auto-dereferencing `Foo` --> $DIR/E0055.rs:11:13 | LL | ref_foo.foo(); | ^^^ deref recursion limit reached | = help: consider adding a `#![recursion_limit="8"]` attribute to your crate (`E0055`) error: aborting due to previous error For more information about this error, try `rustc --explain E0055`.