]> git.proxmox.com Git - rustc.git/blob - tests/ui/infinite/infinite-autoderef.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / infinite / infinite-autoderef.stderr
1 error[E0308]: mismatched types
2 --> $DIR/infinite-autoderef.rs:19:13
3 |
4 LL | x = Box::new(x);
5 | ^^^^^^^^^^^ cyclic type of infinite size
6 |
7 help: consider unboxing the value
8 |
9 LL | x = *Box::new(x);
10 | +
11
12 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
13 --> $DIR/infinite-autoderef.rs:24:5
14 |
15 LL | 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
20 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
21 --> $DIR/infinite-autoderef.rs:24:9
22 |
23 LL | 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
28 error[E0609]: no field `foo` on type `Foo`
29 --> $DIR/infinite-autoderef.rs:24:9
30 |
31 LL | Foo.foo;
32 | ^^^ unknown field
33
34 error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
35 --> $DIR/infinite-autoderef.rs:25:9
36 |
37 LL | 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
42 error[E0599]: no method named `bar` found for struct `Foo` in the current scope
43 --> $DIR/infinite-autoderef.rs:25:9
44 |
45 LL | struct Foo;
46 | ---------- method `bar` not found for this struct
47 ...
48 LL | Foo.bar();
49 | ^^^ method not found in `Foo`
50
51 error: aborting due to 6 previous errors
52
53 Some errors have detailed explanations: E0055, E0308, E0599, E0609.
54 For more information about an error, try `rustc --explain E0055`.