Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
macros
/
issue-25274.rs
blob: 65b29bba8c812fd2d4f159158557b711c16b5c69 [
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
());
}