Update codegen.rs

This commit is contained in:
Nikolay Volf 2016-10-05 10:36:09 +03:00 committed by GitHub
parent 0002bfadab
commit a7e09d8842

View File

@ -49,7 +49,7 @@ pub fn expand_ipc_implementation(
let item = match *annotatable { let item = match *annotatable {
Annotatable::Item(ref item) => item, 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; return;
}, },
}; };