// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // Test syntax checks for `type` keyword. trait T1 for type {} pub trait T2 for type {} trait T3 for type: T2 {} trait T4 {} trait T5 {} trait T6 {} trait T7 {} trait T8 {} struct S1; enum E {} impl T1 for S1 {} fn f() {} pub fn main() { }