| error[E0806]: function `other` has a type that is incompatible with the declaration of `#[foo]` |
| --> $DIR/wrong_ty.rs:17:13 |
| | |
| LL | fn other(x: usize) -> u64 { |
| | ^^^^^ expected `u64`, found `usize` |
| | |
| note: expected this because of this attribute |
| --> $DIR/wrong_ty.rs:16:1 |
| | |
| LL | #[foo] |
| | ^^^^^^ |
| note: type in declaration |
| --> $DIR/wrong_ty.rs:13:20 |
| | |
| LL | safe fn bar(x: u64) -> u64; |
| | ^^^ |
| = note: expected signature `fn(u64) -> _` |
| found signature `fn(usize) -> _` |
| help: change the parameter type to match the declaration |
| | |
| LL - fn other(x: usize) -> u64 { |
| LL + fn other(x: u64) -> u64 { |
| | |
| |
| error: aborting due to 1 previous error |
| |
| For more information about this error, try `rustc --explain E0806`. |