Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/ui/derives/clone-debug-dead-code-in-the-same-struct.rs

13 lines
237 B
Rust
Raw Permalink Normal View History

emit only one note per unused struct field
2022-06-08 16:34:58 +09:00
#![forbid(dead_code)]
#[derive(Debug)]
Not lint pub structs without pub constructors if containing fields of unit, never type, PhantomData and positional ZST
2024-07-24 00:18:36 +08:00
pub struct Whatever {
emit only one note per unused struct field
2022-06-08 16:34:58 +09:00
pub field0: (),
Not lint pub structs without pub constructors if containing fields of unit, never type, PhantomData and positional ZST
2024-07-24 00:18:36 +08:00
field1: (), //~ ERROR fields `field1`, `field2`, `field3`, and `field4` are never read
collapse dead code warnings into a single diagnostic add comments in `store_dead_field_or_variant` support multiple log level add a item ident label fix ui tests fix a ui test fix a rustdoc ui test use let chain refactor: remove `store_dead_field_or_variant` fix a tiny bug
2022-06-10 12:14:24 +09:00
field2: (),
field3: (),
field4: (),
emit only one note per unused struct field
2022-06-08 16:34:58 +09:00
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 888ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API