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