mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
f450a6d74c
* Make `decl_runtime_apis!` fail on methods with default implementation Runtime api functions are not allowed to have default implementations. This fixes this by throwing an error when we detect such a function. * Update primitives/api/proc-macro/src/decl_runtime_apis.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Update primitives/api/test/tests/ui/no_default_implementation.stderr Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
10 lines
134 B
Rust
10 lines
134 B
Rust
sp_api::decl_runtime_apis! {
|
|
pub trait Api {
|
|
fn test() {
|
|
println!("Hey, I'm a default implementation!");
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|