struct SemanticDirection;
fn main() {}
warning: struct is never used: `SemanticDirection`
--> src/main.rs:1:1
|
1 | struct SemanticDirection;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
对于任何严重的事情,我都会重新打开这些警告,但我只是在修改语言,这让我快疯了.
我try 在代码中添加#[allow(dead_code)]
,但没有成功.