diff options
author | ivan770 <[email protected]> | 2021-05-16 19:05:52 +0100 |
---|---|---|
committer | ivan770 <[email protected]> | 2021-05-16 19:05:52 +0100 |
commit | a79b54ef7323d38b8c02094de32fb45a7c8fff8a (patch) | |
tree | 198deef1f07180028b8086dbbb5aa46a71a7f6bf /crates/hir_def/src/nameres/tests.rs | |
parent | 201dbbe6da180c47f2c866128f26a48378768bbc (diff) |
Fix #8834
Diffstat (limited to 'crates/hir_def/src/nameres/tests.rs')
-rw-r--r-- | crates/hir_def/src/nameres/tests.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/hir_def/src/nameres/tests.rs b/crates/hir_def/src/nameres/tests.rs index 4f2e7a2f9..91c37a55d 100644 --- a/crates/hir_def/src/nameres/tests.rs +++ b/crates/hir_def/src/nameres/tests.rs | |||
@@ -411,6 +411,21 @@ struct Arc; | |||
411 | } | 411 | } |
412 | 412 | ||
413 | #[test] | 413 | #[test] |
414 | fn extern_crate_self() { | ||
415 | check( | ||
416 | r#" | ||
417 | //- /main.rs crate:main | ||
418 | #[macro_use] | ||
419 | extern crate self as bla; | ||
420 | "#, | ||
421 | expect![[r#" | ||
422 | crate | ||
423 | bla: t | ||
424 | "#]], | ||
425 | ); | ||
426 | } | ||
427 | |||
428 | #[test] | ||
414 | fn reexport_across_crates() { | 429 | fn reexport_across_crates() { |
415 | check( | 430 | check( |
416 | r#" | 431 | r#" |