summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unsized2.rs
blob: 21370b329a34425875e9004a0734d35ed84af139 (plain)
1
2
3
4
5
6
7
// Test syntax checks for `type` keyword.

fn f<X>() {}

pub fn main() {
    f<type>(); //~ ERROR expected expression, found keyword `type`
}