Lifetime name are restricted and cannot be keyword, this commit add a
test failing the ast validation pass due to some keyword name.
gcc/testsuite/ChangeLog:
* rust/compile/lifetime_name_validation.rs: New test.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
--- /dev/null
+pub fn one<'continue>() {} // { dg-error "lifetimes cannot use keyword names" }
+pub fn two<'_>() {}
+
+pub fn three<'static>() {}
+
+pub fn four<'loop>() {} // { dg-error "lifetimes cannot use keyword names" }