mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
⬆️ rust-analyzer
This commit is contained in:
parent
15b867b5db
commit
b2f6fd4f96
217 changed files with 12639 additions and 3059 deletions
|
@ -764,6 +764,13 @@ trait Foo$0 { }
|
|||
"#,
|
||||
);
|
||||
|
||||
check(
|
||||
r#"
|
||||
trait Foo$0 = ;
|
||||
//^^^
|
||||
"#,
|
||||
);
|
||||
|
||||
check(
|
||||
r#"
|
||||
mod bar$0 { }
|
||||
|
@ -1065,6 +1072,23 @@ fn f() -> impl Sub<Item$0 = u8> {}
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn goto_def_for_module_declaration_in_path_if_types_and_values_same_name() {
|
||||
check(
|
||||
r#"
|
||||
mod bar {
|
||||
pub struct Foo {}
|
||||
//^^^
|
||||
pub fn Foo() {}
|
||||
}
|
||||
|
||||
fn baz() {
|
||||
let _foo_enum: bar::Foo$0 = bar::Foo {};
|
||||
}
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unknown_assoc_ty() {
|
||||
check_unresolved(
|
||||
|
@ -1406,7 +1430,6 @@ include!("included.rs$0");
|
|||
);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod goto_impl_of_trait_fn {
|
||||
use super::check;
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue