blob: 62580755c814e992ae59533bc5452eb35067e932 [file] [log] [blame] [edit]
trait Mumbo {
fn jumbo(&self, x: &usize) -> usize;
}
impl Mumbo for usize {
// Cannot have a larger effect than the trait:
unsafe fn jumbo(&self, x: &usize) { *self + *x; }
//~^ ERROR method `jumbo` has an incompatible type for trait
//~| expected signature `fn
//~| found signature `unsafe fn
}
fn main() {}