1 2 3 4 5 6 7 8
#![crate_name = "a"] #![crate_type = "dylib"] #[cfg(x)] pub fn foo(x: u32) { } #[cfg(y)] pub fn foo(x: i32) { }