blob: ba7e710363149827fd50d04e2bb0ced6b5815437 (
plain)
1
2
3
4
5
6
7
8
9
|
#![feature(rustc_attrs)]
#![feature(decl_macro)]
#[rustc_builtin_macro]
pub macro Copy($i:item) { /* builtin */ }
pub fn foo() {
Copy!(); // { dg-error "cannot invoke derive macro" }
}
|