diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-22 08:16:39 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-24 00:59:38 +0100 |
| commit | a05c83b2ebc4e85e32f723e708a40dbd3f165cd0 (patch) | |
| tree | 8a5fe4fb32c7968db725c058c3991bcd4a3cdfd0 /src/test/ui/parser/issue-19398.stderr | |
| parent | a63f35daeefc4ae89ba5b6bd0323d97bb0d050e6 (diff) | |
| download | rust-a05c83b2ebc4e85e32f723e708a40dbd3f165cd0.tar.gz rust-a05c83b2ebc4e85e32f723e708a40dbd3f165cd0.zip | |
parse: use `parse_item_common` in `parse_assoc_item_`.
Diffstat (limited to 'src/test/ui/parser/issue-19398.stderr')
| -rw-r--r-- | src/test/ui/parser/issue-19398.stderr | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/test/ui/parser/issue-19398.stderr b/src/test/ui/parser/issue-19398.stderr index b38b39f9bd9..1da00960adf 100644 --- a/src/test/ui/parser/issue-19398.stderr +++ b/src/test/ui/parser/issue-19398.stderr @@ -1,11 +1,13 @@ -error: missing `fn`, `type`, `const`, or `static` for item declaration - --> $DIR/issue-19398.rs:1:10 +error: expected `{`, found keyword `unsafe` + --> $DIR/issue-19398.rs:2:19 | -LL | trait T { - | __________^ -LL | | -LL | | extern "Rust" unsafe fn foo(); - | |____^ missing `fn`, `type`, `const`, or `static` +LL | trait T { + | - while parsing this item list starting here +LL | extern "Rust" unsafe fn foo(); + | ^^^^^^ expected `{` +LL | +LL | } + | - the item list ends here error: aborting due to previous error |
