Sign in
fuchsia
/
third_party
/
rust
/
972fef232ec0dd7a3f42091aa6f36cd68aeb3eef
/
.
/
tests
/
ui
/
macros
/
issue-25274.rs
blob: 3ed47b6a894843aa557cc969cd73d574982f4bbd [
file
] [
log
] [
blame
]
//@ run-pass
macro_rules
!
test
{
(
fn
fun
()
->
Option
<
Box
<
$t
:
ty
>>;
)
=>
{
fn
fun
(
x
:
$t
)
->
Option
<
Box
<
$t
>>
{
Some
(
Box
::
new
(
x
))
}
}
}
test
!
{
fn
fun
()
->
Option
<
Box
<
i32
>>;
}
fn
main
()
{
println
!(
"{}"
,
fun
(
0
).
unwrap
());
}