Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
parser
/
macro
/
trait-object-macro-matcher.rs
blob: 80d867d3b568e87ca05fc3e6868754ffb309dc77 [
file
] [
log
] [
blame
]
// A single lifetime is not parsed as a type.
// `ty` matcher in particular doesn't accept a single lifetime
macro_rules
!
m
{
(
$t
:
ty
)
=>
(
let
_
:
$t
;
)
}
fn
main
()
{
m
!(
'static); //~ ERROR expected type, found `'
static
`
}