Skip to content

Commit

Permalink
Add regression test for issue 2409
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 20, 2023
1 parent 479a00a commit c3d637f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_suite/tests/regression/issue2409.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use serde::Deserialize;

macro_rules! bug {
($serde_path:literal) => {
#[derive(Deserialize)]
#[serde(crate = $serde_path)]
pub struct Struct;
};
}

bug!("serde");

0 comments on commit c3d637f

Please sign in to comment.