Use Ty::apply instead of simple and fix method resolution.

This commit is contained in:
Charles Lew 2020-09-17 00:50:24 +08:00
parent eb96964756
commit 3fff5aa4d7
3 changed files with 14 additions and 8 deletions

View file

@ -1072,7 +1072,6 @@ fn method_resolution_foreign_opaque_type() {
s.foo();
}
"#,
// FIXME: 's.foo()' should be `bool`.
expect![[r#"
75..79 'self': &S
89..109 '{ ... }': bool
@ -1084,8 +1083,7 @@ fn method_resolution_foreign_opaque_type() {
146..147 'f': fn f() -> &S
146..149 'f()': &S
157..158 's': &S
157..164 's.foo()': {unknown}
157..164 's.foo()': bool
"#]],
);
}