]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/occurs-check-2.stderr
Auto merge of #65421 - estebank:variants, r=petrochenkov
[rust.git] / src / test / ui / occurs-check-2.stderr
index 547491c395b35600511497f4255dfa0f4cdd663c..7f93697c6f7a75977e318b829b0eece7be122e1c 100644 (file)
@@ -1,11 +1,11 @@
 error[E0308]: mismatched types
-  --> $DIR/occurs-check-2.rs:17:9
+  --> $DIR/occurs-check-2.rs:7:9
    |
 LL |     f = box g;
    |         ^^^^^
    |         |
    |         cyclic type of infinite size
-   |         help: try using a conversion method: `box g.to_string()`
+   |         help: try using a conversion method: `(box g).to_string()`
 
 error: aborting due to previous error