// this test check the error message when parameters are not all Captured. use duang::duang; struct Unit(); impl Unit { duang!( pub fn foo(&self, a: T,b: f64 = 13.0, c: T = a*a) -> (T,f64,T) where T: std::ops::Mul, T: std::fmt::Display, T: Copy, { (a,b,c) } ); } fn main() { }