Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
hygiene
/
issue-44128.rs
blob: 5e03bdb8c5be8ce776acda1614021c60e9b71913 [
file
] [
log
] [
blame
]
// 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
();
}