diff options
Diffstat (limited to 'tests/ui/did_you_mean/recursion_limit_deref.stderr')
-rw-r--r-- | tests/ui/did_you_mean/recursion_limit_deref.stderr | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/recursion_limit_deref.stderr b/tests/ui/did_you_mean/recursion_limit_deref.stderr new file mode 100644 index 000000000..a6b5681a6 --- /dev/null +++ b/tests/ui/did_you_mean/recursion_limit_deref.stderr @@ -0,0 +1,23 @@ +error[E0055]: reached the recursion limit while auto-dereferencing `J` + --> $DIR/recursion_limit_deref.rs:51:22 + | +LL | let x: &Bottom = &t; + | ^^ deref recursion limit reached + | + = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]` attribute to your crate (`recursion_limit_deref`) + +error[E0308]: mismatched types + --> $DIR/recursion_limit_deref.rs:51:22 + | +LL | let x: &Bottom = &t; + | ------- ^^ expected struct `Bottom`, found struct `Top` + | | + | expected due to this + | + = note: expected reference `&Bottom` + found reference `&Top` + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0055, E0308. +For more information about an error, try `rustc --explain E0055`. |