1 // Test that the recursion limit can be changed and that the compiler
2 // suggests a fix. In this case, we have a long chain of Deref impls
3 // which will cause an overflow during the autoderef loop.
6 #![recursion_limit="10"]
9 ($outer:ident, $inner:ident) => {
10 struct $outer($inner);
18 impl std::ops::Deref for $outer {
21 fn deref(&self) -> &$inner {
50 let x: &Bottom = &t; //~ ERROR mismatched types
51 //~^ error recursion limit