summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/parenthesized-deref-suggestion.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/parenthesized-deref-suggestion.stderr')
-rw-r--r--tests/ui/suggestions/parenthesized-deref-suggestion.stderr5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/suggestions/parenthesized-deref-suggestion.stderr b/tests/ui/suggestions/parenthesized-deref-suggestion.stderr
index cafddbe26..9f185f5dd 100644
--- a/tests/ui/suggestions/parenthesized-deref-suggestion.stderr
+++ b/tests/ui/suggestions/parenthesized-deref-suggestion.stderr
@@ -2,7 +2,7 @@ error[E0609]: no field `opts` on type `*const Session`
--> $DIR/parenthesized-deref-suggestion.rs:7:30
|
LL | (sess as *const Session).opts;
- | ^^^^
+ | ^^^^ unknown field
|
help: `(sess as *const Session)` is a raw pointer; try dereferencing it
|
@@ -14,7 +14,8 @@ error[E0609]: no field `0` on type `[u32; 1]`
|
LL | (x as [u32; 1]).0;
| ----------------^
- | |
+ | | |
+ | | unknown field
| help: instead of using tuple indexing, use array indexing: `(x as [u32; 1])[0]`
error: aborting due to 2 previous errors