rust/tests/ui/lifetimes/raw
Matthias Krüger 910ac7eabf
Rollup merge of #132363 - compiler-errors:raw-lt-id-valid, r=wesleywiser
Enforce that raw lifetimes must be valid raw identifiers

Make sure that the identifier part of a raw lifetime is a valid raw identifier. This precludes `'r#_` and all module segment paths for now.

I don't believe this is compelling to support. This was raised by `@ehuss` in https://github.com/rust-lang/reference/pull/1603#discussion_r1822726753 (well, specifically the `'r#_` case), but I don't see why we shouldn't just make it consistent with raw identifiers.
2024-11-09 19:16:43 +01:00
..
gen-lt.e2024.stderr Add some more tests 2024-09-06 10:32:48 -04:00
gen-lt.rs Add some more tests 2024-09-06 10:32:48 -04:00
immediately-followed-by-lt.rs Reject raw lifetime followed by \' as well 2024-10-30 01:13:18 +00:00
immediately-followed-by-lt.stderr Reject raw lifetime followed by \' as well 2024-10-30 01:13:18 +00:00
lifetimes-eq.rs Add some more tests 2024-09-06 10:32:48 -04:00
macro-lt.rs Add some more tests 2024-09-06 10:32:48 -04:00
multiple-prefixes.rs Add some more tests 2024-09-06 10:32:48 -04:00
multiple-prefixes.stderr Add some more tests 2024-09-06 10:32:48 -04:00
prim-lt.rs Add some more tests 2024-09-06 10:32:48 -04:00
raw-lt-invalid-raw-id.rs Enforce that raw lifetime identifiers must be valid raw identifiers 2024-10-30 14:45:22 +00:00
raw-lt-invalid-raw-id.stderr Enforce that raw lifetime identifiers must be valid raw identifiers 2024-10-30 14:45:22 +00:00
simple.rs Add some more tests 2024-09-06 10:32:48 -04:00
static-lt.rs Add some more tests 2024-09-06 10:32:48 -04:00
three-tokens.rs Add some more tests 2024-09-06 10:32:48 -04:00