Rust字段永远不会读取删除警告

代码示例

1
0

生锈的领域是从来没有读删除的警告

//Place #[allow(dead_code)] above the line that is giving the warning

#[allow(dead_code)]
struct GivingWarning;
1
0

rust字段永远不会读取删除警告

//Place #[allow(dead_code)] above the line that is giving the warning

#[allow(dead_code)]
struct GivingWarning;

类似页面

带有示例的类似页面

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................