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