rust/src/test/ui/did_you_mean/recursion_limit_deref.stderr

24 lines
793 B
Plaintext
Raw Normal View History

error[E0055]: reached the recursion limit while auto-dereferencing I
2017-11-20 06:13:27 -06:00
--> $DIR/recursion_limit_deref.rs:62:22
|
2017-11-20 06:13:27 -06:00
62 | let x: &Bottom = &t; //~ ERROR mismatched types
| ^^ deref recursion limit reached
|
= help: consider adding a `#[recursion_limit="20"]` attribute to your crate
error[E0055]: reached the recursion limit while auto-dereferencing I
|
= help: consider adding a `#[recursion_limit="20"]` attribute to your crate
error[E0308]: mismatched types
2017-11-20 06:13:27 -06:00
--> $DIR/recursion_limit_deref.rs:62:22
|
2017-11-20 06:13:27 -06:00
62 | let x: &Bottom = &t; //~ ERROR mismatched types
| ^^ expected struct `Bottom`, found struct `Top`
|
= note: expected type `&Bottom`
found type `&Top`
error: aborting due to 3 previous errors