remove ignored test for downgrading mut to shared

This commit is contained in:
Vladyslav Katasonov 2021-02-04 00:52:53 +03:00
parent c4f3669e70
commit ff77c5e68f

View file

@ -1240,36 +1240,6 @@ impl S {
); );
} }
// it is unclear if this is wanted behaviour
// and how this behavour can be implemented
#[ignore]
#[test]
fn method_with_mut_downgrade_to_shared() {
check_assist(
extract_function,
r"
struct S { f: i32 };
impl S {
fn foo(&mut self) -> i32 {
$01+self.f$0
}
}",
r"
struct S { f: i32 };
impl S {
fn foo(&mut self) -> i32 {
self.fun_name()
}
fn $0fun_name(&self) -> i32 {
1+self.f
}
}",
);
}
#[test] #[test]
fn variable_defined_inside_and_used_after_no_ret() { fn variable_defined_inside_and_used_after_no_ret() {
check_assist( check_assist(