about summary refs log tree commit diff
path: root/tests/ui/did_you_mean/recursion_limit_deref.stderr
blob: faa85dc5ae98c9dbd81af0561d51a819ef1c1719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error: reached the recursion limit finding the struct tail for `K`
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]`

error: reached the recursion limit finding the struct tail for `Bottom`
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]`

error: reached the recursion limit finding the struct tail for `Bottom`
  --> $DIR/recursion_limit_deref.rs:14:9
   |
LL |         struct $outer($inner);
   |         ^^^^^^^^^^^^^^^^^^^^^^
...
LL | link!(A, B);
   | ----------- in this macro invocation
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]`
   = note: this error originates in the macro `link` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0055]: reached the recursion limit while auto-dereferencing `J`
  --> $DIR/recursion_limit_deref.rs:55:22
   |
LL |     let x: &Bottom = &t;
   |                      ^^ deref recursion limit reached
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]` attribute to your crate (`recursion_limit_deref`)

error[E0308]: mismatched types
  --> $DIR/recursion_limit_deref.rs:55:22
   |
LL |     let x: &Bottom = &t;
   |            -------   ^^ expected `&Bottom`, found `&Top`
   |            |
   |            expected due to this
   |
   = note: expected reference `&Bottom`
              found reference `&Top`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0055, E0308.
For more information about an error, try `rustc --explain E0055`.