about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-07-19 02:33:36 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-07-19 02:33:36 +0400
commit5bd88dfa8a0b5d5bcdd84d21e2f465719ce8c328 (patch)
tree0e23b2e8de0d6dc7b59f84bf91abce5e55f35ce8 /src
parent2edad7d77c91145b594ac80c3dc7906998b7674a (diff)
downloadrust-5bd88dfa8a0b5d5bcdd84d21e2f465719ce8c328.tar.gz
rust-5bd88dfa8a0b5d5bcdd84d21e2f465719ce8c328.zip
Add a note about privacy to wrapping suggestion
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr b/src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr
index 536638632de..e8eb8d263ec 100644
--- a/src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr
+++ b/src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr
@@ -13,7 +13,7 @@ note: function defined here
    |
 LL | fn needs_wrapper(t: inner::Wrapper<i32>) {}
    |    ^^^^^^^^^^^^^ ----------------------
-help: try wrapping the expression in `inner::Wrapper`
+help: try wrapping the expression in `inner::Wrapper` (its field is private, but it's local to this crate and its privacy can be changed)
    |
 LL |     needs_wrapper(inner::Wrapper(0));
    |                   +++++++++++++++ +