]> git.lizzy.rs Git - rust.git/blob - src/test/ui/infinite/infinite-autoderef.stderr
Give method not found a primary span label
[rust.git] / src / test / ui / infinite / infinite-autoderef.stderr
1 error[E0308]: mismatched types
2   --> $DIR/infinite-autoderef.rs:20:13
3    |
4 LL |         x = box x;
5    |             ^^^^^
6    |             |
7    |             cyclic type of infinite size
8    |             help: try using a conversion method: `box x.to_string()`
9
10 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
11   --> $DIR/infinite-autoderef.rs:25:5
12    |
13 LL |     Foo.foo;
14    |     ^^^^^^^ deref recursion limit reached
15    |
16    = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
17
18 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
19   --> $DIR/infinite-autoderef.rs:25:9
20    |
21 LL |     Foo.foo;
22    |         ^^^ deref recursion limit reached
23    |
24    = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
25
26 error[E0609]: no field `foo` on type `Foo`
27   --> $DIR/infinite-autoderef.rs:25:9
28    |
29 LL |     Foo.foo;
30    |         ^^^ unknown field
31
32 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
33   --> $DIR/infinite-autoderef.rs:26:9
34    |
35 LL |     Foo.bar();
36    |         ^^^ deref recursion limit reached
37    |
38    = help: consider adding a `#![recursion_limit="256"]` attribute to your crate
39
40 error[E0599]: no method named `bar` found for type `Foo` in the current scope
41   --> $DIR/infinite-autoderef.rs:26:9
42    |
43 LL | struct Foo;
44    | ----------- method `bar` not found for this
45 ...
46 LL |     Foo.bar();
47    |         ^^^ method not found in `Foo`
48
49 error: aborting due to 6 previous errors
50
51 Some errors have detailed explanations: E0055, E0308, E0599, E0609.
52 For more information about an error, try `rustc --explain E0055`.