From 0af727da91e7ff3c8ed5518cb7e005e8d4f939b0 Mon Sep 17 00:00:00 2001 From: John Renner Date: Mon, 27 Apr 2020 10:02:47 -0700 Subject: Validate the location of `crate` in paths --- .../ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs (limited to 'crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs') diff --git a/crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs b/crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs new file mode 100644 index 000000000..bead4c0b6 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rs @@ -0,0 +1,4 @@ +use ::crate; +use {crate, foo::{crate}}; +use hello::crate; +use hello::crate::there; -- cgit v1.2.3