]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/recursion_limit_deref.stderr
Rollup merge of #43846 - frewsxcv:frewsxcv-mailmap, r=Mark-Simulacrum
[rust.git] / src / test / ui / did_you_mean / recursion_limit_deref.stderr
1 error[E0055]: reached the recursion limit while auto-dereferencing I
2   --> $DIR/recursion_limit_deref.rs:60:22
3    |
4 60 |     let x: &Bottom = &t;
5    |                      ^^ deref recursion limit reached
6    |
7    = help: consider adding a `#[recursion_limit="20"]` attribute to your crate
8
9 error[E0055]: reached the recursion limit while auto-dereferencing I
10   |
11   = help: consider adding a `#[recursion_limit="20"]` attribute to your crate
12
13 error[E0308]: mismatched types
14   --> $DIR/recursion_limit_deref.rs:60:22
15    |
16 60 |     let x: &Bottom = &t;
17    |                      ^^ expected struct `Bottom`, found struct `Top`
18    |
19    = note: expected type `&Bottom`
20               found type `&Top`
21
22 error: aborting due to 3 previous errors
23