]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17033.stderr
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-17033.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-17033.rs:2:10
3    |
4 LL |     (*p)(())
5    |     ---- ^^
6    |     |    |
7    |     |    expected `&mut ()`, found `()`
8    |     |    help: consider mutably borrowing here: `&mut ()`
9    |     arguments to this function are incorrect
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0308`.