Skip to content

Commit 762772f

Browse files
committed
re-bless tests
1 parent 4ff7aff commit 762772f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

tests/ui/raw-ref-op/missing-modifier/let-stmt.stderr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, fo
44
LL | let _ = &raw foo;
55
| ^^^ expected one of 8 possible tokens
66
|
7+
help: you might have meant to use a raw reference
8+
|
9+
LL | let _ = &raw mut foo;
10+
| +++
11+
LL | let _ = &raw const foo;
12+
| +++++
713
help: you might have meant to write a field access
814
|
915
LL | let _ = &raw.foo;

tests/ui/raw-ref-op/missing-modifier/nested-array-expr.stderr

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ error: expected one of `!`, `,`, `.`, `::`, `;`, `?`, `]`, `{`, or an operator,
33
|
44
LL | [&raw foo::A; 3];
55
| ^^^ expected one of 9 possible tokens
6+
|
7+
help: you might have meant to use a raw reference
8+
|
9+
LL | [&raw mut foo::A; 3];
10+
| +++
11+
LL | [&raw const foo::A; 3];
12+
| +++++
613

714
error: aborting due to 1 previous error
815

tests/ui/raw-ref-op/missing-modifier/return-expr.stderr

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
33
|
44
LL | &raw foo::A
55
| ^^^ expected one of 8 possible tokens
6+
|
7+
help: you might have meant to use a raw reference
8+
|
9+
LL | &raw mut foo::A
10+
| +++
11+
LL | &raw const foo::A
12+
| +++++
613

714
error: aborting due to 1 previous error
815

0 commit comments

Comments
 (0)