mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
12 lines
500 B
Rust
12 lines
500 B
Rust
type A = for<'a:> fn(); // OK
|
|
type A = for<'a:,> fn(); // OK
|
|
type A = for<'a> fn(); // OK
|
|
type A = for<> fn(); // OK
|
|
type A = for<'a: 'b + 'c> fn(); // OK (rejected later by ast_validation)
|
|
type A = for<'a: 'b,> fn(); // OK(rejected later by ast_validation)
|
|
type A = for<'a: 'b +> fn(); // OK (rejected later by ast_validation)
|
|
type A = for<'a, T> fn(); // OK (rejected later by ast_validation)
|
|
type A = for<,> fn(); //~ ERROR expected one of `#`, `>`, `const`, identifier, or lifetime
|
|
|
|
fn main() {}
|