Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
derive_macro8.rs
blob: 6ba59e5da570ab5f8a0dcc10102bbedc13ec1369 [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
#![
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" }
}