2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:19:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-08-24 19:39:40 -05:00
|
|
|
LL | x = Box::new(x);
|
2022-01-11 22:57:40 -06:00
|
|
|
| ^^^^^^^^^^^ cyclic type of infinite size
|
|
|
|
|
|
|
|
|
help: consider unboxing the value
|
|
|
|
|
|
|
|
|
LL | x = *Box::new(x);
|
|
|
|
| +
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-11-21 10:06:24 -06:00
|
|
|
error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:24:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Foo.foo;
|
|
|
|
| ^^^^^^^ deref recursion limit reached
|
|
|
|
|
|
2021-09-28 15:16:42 -05:00
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-11-21 10:06:24 -06:00
|
|
|
error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:24:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Foo.foo;
|
|
|
|
| ^^^ deref recursion limit reached
|
|
|
|
|
|
2021-09-28 15:16:42 -05:00
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0609]: no field `foo` on type `Foo`
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:24:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Foo.foo;
|
|
|
|
| ^^^ unknown field
|
|
|
|
|
2018-11-21 10:06:24 -06:00
|
|
|
error[E0055]: reached the recursion limit while auto-dereferencing `Foo`
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:25:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Foo.bar();
|
|
|
|
| ^^^ deref recursion limit reached
|
|
|
|
|
|
2021-09-28 15:16:42 -05:00
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`infinite_autoderef`)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no method named `bar` found for struct `Foo` in the current scope
|
2022-03-20 14:02:18 -05:00
|
|
|
--> $DIR/infinite-autoderef.rs:25:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo;
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------- method `bar` not found for this struct
|
2018-08-08 07:28:26 -05:00
|
|
|
...
|
|
|
|
LL | Foo.bar();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^ method not found in `Foo`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0055, E0308, E0599, E0609.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0055`.
|