unsafe trait Foo { // methods go here } unsafe impl Foo for i32 { // method implementations go here } fn main() {}