Skip to content

Commit

Permalink
re-bless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehri01 committed Jan 20, 2025
1 parent 4ff7aff commit 762772f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ui/raw-ref-op/missing-modifier/let-stmt.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, fo
LL | let _ = &raw foo;
| ^^^ expected one of 8 possible tokens
|
help: you might have meant to use a raw reference
|
LL | let _ = &raw mut foo;
| +++
LL | let _ = &raw const foo;
| +++++
help: you might have meant to write a field access
|
LL | let _ = &raw.foo;
Expand Down
7 changes: 7 additions & 0 deletions tests/ui/raw-ref-op/missing-modifier/nested-array-expr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ error: expected one of `!`, `,`, `.`, `::`, `;`, `?`, `]`, `{`, or an operator,
|
LL | [&raw foo::A; 3];
| ^^^ expected one of 9 possible tokens
|
help: you might have meant to use a raw reference
|
LL | [&raw mut foo::A; 3];
| +++
LL | [&raw const foo::A; 3];
| +++++

error: aborting due to 1 previous error

7 changes: 7 additions & 0 deletions tests/ui/raw-ref-op/missing-modifier/return-expr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
|
LL | &raw foo::A
| ^^^ expected one of 8 possible tokens
|
help: you might have meant to use a raw reference
|
LL | &raw mut foo::A
| +++
LL | &raw const foo::A
| +++++

error: aborting due to 1 previous error

0 comments on commit 762772f

Please sign in to comment.