about summary refs log tree commit diff
path: root/src/test/ui/parser/default.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-22 08:16:39 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-02-24 00:59:38 +0100
commita05c83b2ebc4e85e32f723e708a40dbd3f165cd0 (patch)
tree8a5fe4fb32c7968db725c058c3991bcd4a3cdfd0 /src/test/ui/parser/default.rs
parenta63f35daeefc4ae89ba5b6bd0323d97bb0d050e6 (diff)
downloadrust-a05c83b2ebc4e85e32f723e708a40dbd3f165cd0.tar.gz
rust-a05c83b2ebc4e85e32f723e708a40dbd3f165cd0.zip
parse: use `parse_item_common` in `parse_assoc_item_`.
Diffstat (limited to 'src/test/ui/parser/default.rs')
-rw-r--r--src/test/ui/parser/default.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/parser/default.rs b/src/test/ui/parser/default.rs
index 50952eef22f..bd9ed0f4524 100644
--- a/src/test/ui/parser/default.rs
+++ b/src/test/ui/parser/default.rs
@@ -20,7 +20,8 @@ impl Foo for u16 {
 
 impl Foo for u32 { //~ ERROR not all trait items implemented, missing: `foo`
     default pub fn foo<T: Default>() -> T { T::default() }
-    //~^ ERROR missing `fn`, `type`, `const`, or `static` for item declaration
+    //~^ ERROR unmatched `default`
+    //~| ERROR non-item in item list
 }
 
 fn main() {}