Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/unresolved_method.rs')
-rw-r--r--crates/ide-diagnostics/src/handlers/unresolved_method.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-diagnostics/src/handlers/unresolved_method.rs b/crates/ide-diagnostics/src/handlers/unresolved_method.rs
index 648d081898..0614fdc551 100644
--- a/crates/ide-diagnostics/src/handlers/unresolved_method.rs
+++ b/crates/ide-diagnostics/src/handlers/unresolved_method.rs
@@ -335,8 +335,8 @@ fn main() {
r#"
struct Foo { bar: i32 }
fn foo() {
- Foo { bar: i32 }.bar();
- // ^^^ error: no method `bar` on type `Foo`, but a field with a similar name exists
+ Foo { bar: 0 }.bar();
+ // ^^^ error: no method `bar` on type `Foo`, but a field with a similar name exists
}
"#,
);