summaryrefslogtreecommitdiff
path: root/tests/headers/derive-hash-and-blocklist.hpp
blob: 51a3372fcf5f9ce747cf79b6cecdb9a336a49634 (plain)
1
2
3
4
5
6
7
8
9
10
// bindgen-flags: --with-derive-hash --blocklist-type BlocklistMe --raw-line 'pub struct BlocklistMe(u8);'

struct BlocklistMe {};

/**
 * Because this type contains a blocklisted type, it should not derive Hash.
 */
struct ShouldNotDeriveHash {
    BlocklistMe a;
};