]> git.lizzy.rs Git - rust.git/blob - src/test/ui/autoref-autoderef/issue-38940.stderr
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[rust.git] / src / test / ui / autoref-autoderef / issue-38940.stderr
1 error[E0055]: reached the recursion limit while auto-dereferencing `J`
2   --> $DIR/issue-38940.rs:49:22
3    |
4 LL |     let x: &Bottom = &t;
5    |                      ^^ deref recursion limit reached
6    |
7    = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]` attribute to your crate (`issue_38940`)
8
9 error[E0308]: mismatched types
10   --> $DIR/issue-38940.rs:49:22
11    |
12 LL |     let x: &Bottom = &t;
13    |            -------   ^^ expected struct `Bottom`, found struct `Top`
14    |            |
15    |            expected due to this
16    |
17    = note: expected reference `&Bottom`
18               found reference `&Top`
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0055, E0308.
23 For more information about an error, try `rustc --explain E0055`.