use std::ops::{Add, Sub, Mul, Div}; trait ArithmeticOps: Add + Sub + Mul + Div {} //~^ ERROR the size for values of type `Self` cannot be known at compilation time impl ArithmeticOps for T where T: Add + Sub + Mul + Div { // Nothing to implement, since T already supports the other traits. // It has the functions it needs already } fn main() {}