mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add another unrelated, currently not working test
This commit is contained in:
parent
b634ba41e0
commit
44279ef1df
1 changed files with 16 additions and 0 deletions
|
@ -3450,6 +3450,22 @@ fn test() { S.foo()<|>; }
|
|||
assert_eq!(t, "u128");
|
||||
}
|
||||
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn method_resolution_by_value_before_autoref() {
|
||||
let t = type_at(
|
||||
r#"
|
||||
//- /main.rs
|
||||
trait Clone { fn clone(&self) -> Self; }
|
||||
struct S;
|
||||
impl Clone for S {}
|
||||
impl Clone for &S {}
|
||||
fn test() { (S.clone(), (&S).clone(), (&&S).clone())<|>; }
|
||||
"#,
|
||||
);
|
||||
assert_eq!(t, "(S, S, &S)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn method_resolution_trait_before_autoderef() {
|
||||
let t = type_at(
|
||||
|
|
Loading…
Reference in a new issue