Skip to content

Commit d98b4ab

Browse files
committed
Fix test that used println
1 parent 6f77fd3 commit d98b4ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ide-diagnostics/src/handlers/unresolved_method.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl Dolphin {
365365
366366
#[allow(unused)]
367367
fn say_hi_to(dolphin: &Dolphin) {
368-
println!("hello, {}", dolphin.name$0());
368+
"hello " + dolphin.name$0();
369369
}"#,
370370
r#"
371371
struct Dolphin;
@@ -375,8 +375,9 @@ impl Dolphin {
375375
fn name(&self) { todo!() }
376376
}
377377
378+
#[allow(unused)]
378379
fn say_hi_to(dolphin: &Dolphin) {
379-
println!("hello, {}", dolphin.name());
380+
"hello " + dolphin.name();
380381
}"#,
381382
);
382383
}

0 commit comments

Comments
 (0)