fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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