Skip to content

Commit

Permalink
Test that derive macros work properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
someguynamedjosh committed Jul 18, 2023
1 parent 67971e2 commit 7fbc37b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .vscode/extensions.json

This file was deleted.

9 changes: 9 additions & 0 deletions examples/src/ok_tests.rs
Expand Up @@ -69,6 +69,15 @@ where
data4: &'this mut C,
}

// Regression test for broken derive macros.
#[self_referencing]
#[derive(Debug, PartialEq, Eq)]
struct DeriveCompilesOk<T: 'static> {
data: T,
#[borrows(data)]
dref: &'this T,
}

// /// Regression test for #46
// #[self_referencing]
// struct PreviouslyBrokeAutoGeneratedChecker<T: 'static> {
Expand Down

0 comments on commit 7fbc37b

Please sign in to comment.