fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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