]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/item-privacy.stderr
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
[rust.git] / src / test / ui / traits / item-privacy.stderr
index 68d527dc786aa2cc8406d9cdda218097a0755837..30daf8e27702441b0504987446bc7d6c30d70a38 100644 (file)
@@ -20,6 +20,9 @@ error[E0599]: no method named `b` found for struct `S` in the current scope
 LL | struct S;
    | --------- method `b` not found for this
 ...
+LL |         fn b(&self) { }
+   |            - the method is available for `S` here
+...
 LL |     S.b();
    |       ^ method not found in `S`
    |