Debian Codegraph @

third_party/rust/darling/tests/compile-fail/attrs_with_bad_fn.rs

raw
1 use darling::FromDeriveInput;
2 use syn::Attribute;
3
4 fn bad_converter(attrs: Vec<Attribute>) -> Vec<Attribute> {
5 attrs
6 }
7
8 #[derive(FromDeriveInput)]
9 #[darling(forward_attrs)]
10 struct Receiver {
11 #[darling(with = bad_converter)]
12 attrs: Vec<Attribute>,
13 }
14
15 fn main() {}