rust/src/test/ui/occurs-check-2.stderr
Esteban Küber 99f2977031 Modify structured suggestion output
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
2021-08-11 09:46:24 +00:00

15 lines
358 B
Plaintext

error[E0308]: mismatched types
--> $DIR/occurs-check-2.rs:7:9
|
LL | f = box g;
| ^^^^^ cyclic type of infinite size
|
help: try using a conversion method
|
LL | f = (box g).to_string();
| + +++++++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.