我正在学习Rust,并且发现在变量名的开头添加下划线将使编译器在未使用时不会发出警告.我想知道为什么这个功能存在,因为未使用的变量是不受欢迎的.
variables rust unused-variables
rust ×1
unused-variables ×1
variables ×1