Skip to content

Commit

Permalink
Cite source for derive macro helper example
Browse files Browse the repository at this point in the history
  • Loading branch information
ninevra committed Mar 8, 2022
1 parent 63dfc35 commit 2448511
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions corpus/declarations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,8 @@ foo(#[bar(some tokens are special in other contexts: $/';()*()+.)] x);
Derive macro helper attributes
================================================================================

// Example from https://github.com/dtolnay/thiserror/blob/21c26903e29cb92ba1a7ff11e82ae2001646b60d/README.md

use thiserror::Error;

#[derive(Error, Debug)]
Expand All @@ -1051,6 +1053,7 @@ pub enum Error {
--------------------------------------------------------------------------------

(source_file
(line_comment)
(use_declaration
(scoped_identifier (identifier) (identifier)))
(attribute_item
Expand Down

0 comments on commit 2448511

Please sign in to comment.