1 // Check that safe fns are not a subtype of unsafe fns.
4 unsafe fn len(&self) -> u32;
8 fn len(&self) -> u32 { *self }
9 //~^ ERROR method `len` has an incompatible type for trait
10 //~| expected fn pointer `unsafe fn(&u32) -> _`
11 //~| found fn pointer `fn(&u32) -> _`