fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
690 B21 linesraw
1error[E0055]: reached the recursion limit while auto-dereferencing `I`
2  --> $DIR/issue-38940.rs:43:22
3   |
4LL |     let x: &Bottom = &t;
5   |                      ^^ deref recursion limit reached
6   |
7   = help: consider adding a `#![recursion_limit="20"]` attribute to your crate
8
9error[E0308]: mismatched types
10  --> $DIR/issue-38940.rs:43:22
11   |
12LL |     let x: &Bottom = &t;
13   |                      ^^ expected struct `Bottom`, found struct `Top`
14   |
15   = note: expected type `&Bottom`
16              found type `&Top`
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0055, E0308.
21For more information about an error, try `rustc --explain E0055`.