fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0053]: method `jumbo` has an incompatible type for trait 2 --> $DIR/impl-method-mismatch.rs:7:5 3 | 4LL | unsafe fn jumbo(&self, x: &usize) { *self + *x; } 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected normal fn, found unsafe fn 6 | 7note: type in trait 8 --> $DIR/impl-method-mismatch.rs:2:5 9 | 10LL | fn jumbo(&self, x: &usize) -> usize; 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 = note: expected signature `fn(&usize, &usize) -> usize` 13 found signature `unsafe fn(&usize, &usize)` 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0053`.