Skip to content

Commit

Permalink
[derive] Use fully-qualified path for Sized (#233)
Browse files Browse the repository at this point in the history
Part of #11
  • Loading branch information
joshlf committed Aug 8, 2023
1 parent a31ffef commit 311a2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zerocopy-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ fn impl_block<D: DataExt>(
let use_concrete = if input.generics.params.is_empty() {
Some(quote! {
const _: () = {
fn must_implement_trait<T: zerocopy::#trait_ident + ?Sized>() {}
fn must_implement_trait<T: zerocopy::#trait_ident + ?::core::marker::Sized>() {}
let _ = must_implement_trait::<#type_ident>;
};
})
Expand Down

0 comments on commit 311a2b0

Please sign in to comment.