// SPDX-FileCopyrightText: 2020 Robin Krahl // SPDX-License-Identifier: Apache-2.0 or MIT use conflate::Merge; #[derive(Merge)] struct S { #[merge(strategy = my_custom_merge_strategy)] field1: u8, } fn my_custom_merge_strategy(left: u8, right: u8) -> u8 { left + right } fn main() {}