2017-01-18 14:41:57 +00:00
|
|
|
type A = for<'a:> fn(); // OK
|
|
|
|
type A = for<'a:,> fn(); // OK
|
|
|
|
type A = for<'a> fn(); // OK
|
|
|
|
type A = for<> fn(); // OK
|
2018-03-06 10:22:24 +00:00
|
|
|
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)
|
2020-03-05 10:42:56 +00:00
|
|
|
type A = for<,> fn(); //~ ERROR expected one of `#`, `>`, `const`, identifier, or lifetime
|
2017-01-18 14:41:57 +00:00
|
|
|
|
|
|
|
fn main() {}
|