diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-02-14 18:17:59 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-02-14 18:17:59 +0800 |
| commit | 98b82aedba3f3f581e89df54352914b27f42c6f7 (patch) | |
| tree | 782aba6047d56b30903b84d200016dc7c08b8aff /tests/ui/parser/numeric-lifetime.rs | |
| parent | 380fa264132ad481e73cbbf0f3a0feefd99a1d78 (diff) | |
| download | rust-98b82aedba3f3f581e89df54352914b27f42c6f7.tar.gz rust-98b82aedba3f3f581e89df54352914b27f42c6f7.zip | |
Update numeric lifetime test
Diffstat (limited to 'tests/ui/parser/numeric-lifetime.rs')
| -rw-r--r-- | tests/ui/parser/numeric-lifetime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/parser/numeric-lifetime.rs b/tests/ui/parser/numeric-lifetime.rs index 2d82354c62c..a082a8a44df 100644 --- a/tests/ui/parser/numeric-lifetime.rs +++ b/tests/ui/parser/numeric-lifetime.rs @@ -1,6 +1,6 @@ struct S<'1> { s: &'1 usize } -//~^ ERROR lifetimes cannot start with a number -//~| ERROR lifetimes cannot start with a number +//~^ ERROR lifetimes or labels cannot start with a number +//~| ERROR lifetimes or labels cannot start with a number fn main() { // verify that the parse error doesn't stop type checking let x: usize = ""; |
