Sign in
◑
Theme
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
issues
/
3726.rs
blob: 3c773099a5a8af61e3672af549f8345254df48df [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
pub
enum
TypeCtor
{
Slice
,
Array
,
}
pub
struct
ApplicationTy
(
TypeCtor
);
macro_rules
!
ty_app
{
(
$ctor
:
pat
)
=>
{
ApplicationTy
(
$ctor
)
};
}
pub
fn
foo
(
ty
:
ApplicationTy
)
{
match
ty
{
ty_app
!(
TypeCtor
::
Array
)
=>
{}
}
}