]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-3763.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-3763.stderr
index 7f54c9f8a6b9ff9077bf8d7810f08a54f932985d..6f4567546d00b6a206282ac762f14af0b3080a6c 100644 (file)
@@ -13,12 +13,18 @@ LL |     let _woohoo = (Box::new(my_struct)).priv_field;
 error[E0624]: associated function `happyfun` is private
   --> $DIR/issue-3763.rs:24:18
    |
+LL |         fn happyfun(&self) {}
+   |         ------------------ private associated function defined here
+...
 LL |     (&my_struct).happyfun();
    |                  ^^^^^^^^ private associated function
 
 error[E0624]: associated function `happyfun` is private
   --> $DIR/issue-3763.rs:26:27
    |
+LL |         fn happyfun(&self) {}
+   |         ------------------ private associated function defined here
+...
 LL |     (Box::new(my_struct)).happyfun();
    |                           ^^^^^^^^ private associated function