1
Fork 0

Check that #[pointee] is applied only to generic arguments

This commit is contained in:
Brezak 2024-08-20 20:53:49 +02:00
parent 2305aad7ac
commit aa4f16a6e7
No known key found for this signature in database
GPG key ID: CB3891E2B1279D7C
5 changed files with 131 additions and 1 deletions

View file

@ -937,3 +937,10 @@ pub(crate) struct NakedFunctionTestingAttribute {
#[label]
pub testing_span: Span,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_non_generic_pointee)]
pub(crate) struct NonGenericPointee {
#[primary_span]
pub span: Span,
}