mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Remove the old variants replaced by Ty::Apply
This commit is contained in:
parent
7a8ba53542
commit
8a5fbf4713
12 changed files with 265 additions and 403 deletions
|
@ -517,23 +517,8 @@ The Some variant
|
|||
assert_eq!("u32", &type_name);
|
||||
}
|
||||
|
||||
// FIXME: improve type_of to make this work
|
||||
#[test]
|
||||
fn test_type_of_for_expr_1() {
|
||||
let (analysis, range) = single_file_with_range(
|
||||
"
|
||||
fn main() {
|
||||
let foo = <|>1 + foo_test<|>;
|
||||
}
|
||||
",
|
||||
);
|
||||
|
||||
let type_name = analysis.type_of(range).unwrap().unwrap();
|
||||
assert_eq!("{unknown}", &type_name);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_type_of_for_expr_2() {
|
||||
fn test_type_of_for_expr() {
|
||||
let (analysis, range) = single_file_with_range(
|
||||
"
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue