about summary refs log tree commit diff
path: root/src/test/ui/parser/macro/trait-object-macro-matcher.rs
blob: 80d867d3b568e87ca05fc3e6868754ffb309dc77 (plain)
1
2
3
4
5
6
7
8
9
10
// 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`
}