mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +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");
|
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]
|
#[test]
|
||||||
fn method_resolution_trait_before_autoderef() {
|
fn method_resolution_trait_before_autoderef() {
|
||||||
let t = type_at(
|
let t = type_at(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue