We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7abf34 commit a65ca20Copy full SHA for a65ca20
crates/ide-diagnostics/src/handlers/type_mismatch.rs
@@ -315,25 +315,25 @@ fn main() {
315
fn test_add_reference_to_macro_call() {
316
check_fix(
317
r#"
318
-macro_rules! hello_world {
+macro_rules! thousand {
319
() => {
320
- "Hello World".to_string()
+ 1000_u64
321
};
322
}
323
-fn test(foo: &String) {}
+fn test(foo: &u64) {}
324
fn main() {
325
- test($0hello_world!());
+ test($0thousand!());
326
327
"#,
328
329
330
331
332
333
334
335
336
- test(&hello_world!());
+ test(&thousand!());
337
338
339
);
0 commit comments