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

24 lines
801 B
Plaintext
Raw Normal View History

error[E0055]: reached the recursion limit while auto-dereferencing `J`
2018-12-25 08:56:47 -07:00
--> $DIR/recursion_limit_deref.rs:50:22
|
2019-03-09 15:03:44 +03:00
LL | let x: &Bottom = &t;
| ^^ deref recursion limit reached
|
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate (`recursion_limit_deref`)
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/recursion_limit_deref.rs:50:22
|
2019-03-09 15:03:44 +03:00
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.
2018-03-03 15:59:40 +01:00
For more information about an error, try `rustc --explain E0055`.