mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +00:00
Add another block def map test
This commit is contained in:
parent
b9c213da7a
commit
7067a22e1c
1 changed files with 27 additions and 0 deletions
|
@ -232,3 +232,30 @@ fn f() {
|
||||||
"#]],
|
"#]],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn super_does_not_resolve_to_block_module() {
|
||||||
|
check_at(
|
||||||
|
r#"
|
||||||
|
fn main() {
|
||||||
|
struct Struct {}
|
||||||
|
mod module {
|
||||||
|
use super::Struct;
|
||||||
|
|
||||||
|
$0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"#,
|
||||||
|
expect![[r#"
|
||||||
|
block scope
|
||||||
|
Struct: t
|
||||||
|
module: t
|
||||||
|
|
||||||
|
block scope::module
|
||||||
|
Struct: _
|
||||||
|
|
||||||
|
crate
|
||||||
|
main: v
|
||||||
|
"#]],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue