]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-35675.stderr
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-35675.stderr
index 8637e574c5ecb1b4dafdb523c348f05236daf9dd..4a06196d548e3f9fd1ac7eccaaebc5cf4a337582 100644 (file)
@@ -7,7 +7,7 @@ LL | fn should_return_fruit() -> Apple {
 help: there is an enum variant `Fruit::Apple`; try using the variant's enum
    |
 LL | fn should_return_fruit() -> Fruit {
-   |                             ^^^^^
+   |                             ~~~~~
 
 error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
   --> $DIR/issue-35675.rs:9:5
@@ -58,7 +58,7 @@ LL | fn bar() -> Variant3 {
 help: there is an enum variant `x::Enum::Variant3`; try using the variant's enum
    |
 LL | fn bar() -> x::Enum {
-   |             ^^^^^^^
+   |             ~~~~~~~
 
 error[E0573]: expected type, found variant `Some`
   --> $DIR/issue-35675.rs:28:13