macros: improve diagnostics on type mismatch (#3766)

This commit is contained in:
Taiki Endo
2021-05-09 18:58:05 +09:00
committed by GitHub
parent 05c3cf3a0a
commit f9ce18a524
8 changed files with 149 additions and 7 deletions
@@ -0,0 +1,11 @@
error: function is never used: `f`
--> $DIR/macros_dead_code.rs:6:10
|
6 | async fn f() {}
| ^
|
note: the lint level is defined here
--> $DIR/macros_dead_code.rs:1:9
|
1 | #![deny(dead_code)]
| ^^^^^^^^^