#![feature(plugin)] #[plugin] extern crate kwarg_macros; #[macro_use] extern crate library; library_kwargs!(); fn main() { use library::foo; let ret = foo!(c = Some(2), b = Some(6)); assert_eq!(ret, (1, Some(6), Some(2))); }