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