Update codegen.rs
This commit is contained in:
parent
0002bfadab
commit
a7e09d8842
@ -49,7 +49,7 @@ pub fn expand_ipc_implementation(
|
||||
let item = match *annotatable {
|
||||
Annotatable::Item(ref item) => item,
|
||||
_ => {
|
||||
cx.span_err(meta_item.span, "`#[ipc]` may only be applied to struct implementations");
|
||||
cx.span_err(meta_item.span, "`#[ipc]` may only be applied to implementations and traits");
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user