mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Make incremental nameres test harder
This commit is contained in:
parent
38c67e5c0d
commit
f980b07529
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
|
||||||
|
|
||||||
use crate::foo::bar::Baz;
|
use crate::foo::bar::Baz;
|
||||||
|
|
||||||
|
enum E { A, B }
|
||||||
|
use E::*;
|
||||||
|
|
||||||
fn foo() -> i32 {
|
fn foo() -> i32 {
|
||||||
1 + 1
|
1 + 1
|
||||||
}
|
}
|
||||||
|
@ -46,6 +49,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
|
||||||
|
|
||||||
use crate::foo::bar::Baz;
|
use crate::foo::bar::Baz;
|
||||||
|
|
||||||
|
enum E { A, B }
|
||||||
|
use E::*;
|
||||||
|
|
||||||
fn foo() -> i32 { 92 }
|
fn foo() -> i32 { 92 }
|
||||||
",
|
",
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue