summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-04-19 02:57:03 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-04-19 02:57:03 -0400
commit4038d8be9593d556412ce9705a324785f7d9e125 (patch)
tree63c8133cb1401f387976ec7d69bf790eb1a30298 /tests
parent0439506dcfb639bd494248450f7686b0a31580d3 (diff)
downloadget-4038d8be9593d556412ce9705a324785f7d9e125.tar.gz
refactored code with if_chain
Adding a separate error for the case of an empty attribute list allows the code to be less complicated and gives better diagnostics. Otherwise another nested block would be required.
Diffstat (limited to 'tests')
-rw-r--r--tests/trybuild/invalid-attribute.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trybuild/invalid-attribute.stderr b/tests/trybuild/invalid-attribute.stderr
index 426cc06..e408bb0 100644
--- a/tests/trybuild/invalid-attribute.stderr
+++ b/tests/trybuild/invalid-attribute.stderr
@@ -4,7 +4,7 @@ error: proc-macro derive panicked
3 | #[derive(Get)]
| ^^^
|
- = help: message: called `Result::unwrap()` on an `Err` value: "failed to parse attribute"
+ = help: message: called `Result::unwrap()` on an `Err` value: "expected at least 1 name value pair in attribute"
error: proc-macro derive panicked
--> tests/trybuild/invalid-attribute.rs:9:10