Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
hygiene
/
issue-44128.rs
blob: 021d340bacf7f593fe7f4552c6cd27a73546677c [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
#![
allow
(
unused_must_use
)]
#![
feature
(
decl_macro
)]
pub
macro create_struct
(
$a
:
ident
)
{
struct
$a
;
impl
Clone
for
$a
{
fn
clone
(&
self
)
->
Self
{
$a
}
}
}
fn
main
()
{
create_struct
!(
Test
);
Test
.
clone
();
}