This commit is contained in:
Max Heller 2023-07-28 06:45:35 -04:00
parent 008b639ef5
commit 37a8493138
3 changed files with 46 additions and 12 deletions

View file

@ -358,3 +358,15 @@ trait Tr<'a, T: 'a>: Super where Self: for<'a> Tr<'a, T> {}
"#]],
)
}
#[test]
fn generics_with_attributes() {
check(
r#"
struct S<#[cfg(never)] T>;
"#,
expect![[r#"
pub(self) struct S<#[cfg(never)] T>;
"#]],
)
}