Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/tests/method_resolution.rs')
| -rw-r--r-- | crates/hir_ty/src/tests/method_resolution.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs index 306da6738b..26078a4b2f 100644 --- a/crates/hir_ty/src/tests/method_resolution.rs +++ b/crates/hir_ty/src/tests/method_resolution.rs @@ -1083,22 +1083,22 @@ fn dyn_trait_super_trait_not_in_scope() { fn method_resolution_foreign_opaque_type() { check_infer( r#" - extern "C" { - type S; - fn f() -> &'static S; - } +extern "C" { + type S; + fn f() -> &'static S; +} - impl S { - fn foo(&self) -> bool { - true - } - } +impl S { + fn foo(&self) -> bool { + true + } +} - fn test() { - let s = unsafe { f() }; - s.foo(); - } - "#, +fn test() { + let s = unsafe { f() }; + s.foo(); +} +"#, expect![[r#" 75..79 'self': &S 89..109 '{ ... }': bool @@ -1106,7 +1106,7 @@ fn method_resolution_foreign_opaque_type() { 123..167 '{ ...o(); }': () 133..134 's': &S 137..151 'unsafe { f() }': &S - 144..151 '{ f() }': &S + 137..151 'unsafe { f() }': &S 146..147 'f': fn f() -> &S 146..149 'f()': &S 157..158 's': &S |