Only parse safe as contextual kw in extern blocks

I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
This commit is contained in:
Chayim Refael Friedman 2024-10-30 19:28:33 +02:00
parent cd206f5c9b
commit 3a8dc27e72
7 changed files with 47 additions and 8 deletions

View file

@ -527,6 +527,10 @@ mod ok {
run_and_expect_no_errors("test_data/parser/inline/ok/return_type_syntax_in_path.rs");
}
#[test]
fn safe_outside_of_extern() {
run_and_expect_no_errors("test_data/parser/inline/ok/safe_outside_of_extern.rs");
}
#[test]
fn self_param() { run_and_expect_no_errors("test_data/parser/inline/ok/self_param.rs"); }
#[test]
fn self_param_outer_attr() {