1 // A more comprehensive test that const parameters have correctly implemented
8 struct VectorLike<T, const SIZE: usize>([T; {SIZE}]);
10 macro_rules! impl_operator_overload {
11 ($trait_ident:ident, $method_ident:ident) => {
13 impl<T, const SIZE: usize> $trait_ident for VectorLike<T, {SIZE}>
17 type Output = VectorLike<T, {SIZE}>;
19 fn $method_ident(self, _: VectorLike<T, {SIZE}>) -> VectorLike<T, {SIZE}> {
28 impl_operator_overload!(Add, add);