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/assoc-static-semantic-fail.rs | |
| 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/assoc-static-semantic-fail.rs')
| -rw-r--r-- | src/test/ui/parser/assoc-static-semantic-fail.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/parser/assoc-static-semantic-fail.rs b/src/test/ui/parser/assoc-static-semantic-fail.rs index cf3debd77cb..da4015a4620 100644 --- a/src/test/ui/parser/assoc-static-semantic-fail.rs +++ b/src/test/ui/parser/assoc-static-semantic-fail.rs @@ -10,10 +10,12 @@ impl S { //~^ ERROR associated `static` items are not allowed static IB: u8; //~^ ERROR associated `static` items are not allowed + //~| ERROR associated constant in `impl` without body default static IC: u8 = 0; //~^ ERROR associated `static` items are not allowed pub(crate) default static ID: u8; //~^ ERROR associated `static` items are not allowed + //~| ERROR associated constant in `impl` without body } trait T { @@ -35,9 +37,11 @@ impl T for S { //~^ ERROR associated `static` items are not allowed static TB: u8; //~^ ERROR associated `static` items are not allowed + //~| ERROR associated constant in `impl` without body default static TC: u8 = 0; //~^ ERROR associated `static` items are not allowed pub default static TD: u8; //~^ ERROR associated `static` items are not allowed + //~| ERROR associated constant in `impl` without body //~| ERROR unnecessary visibility qualifier } |
