5f5b4ee128
This reverts commit31fe9628cf
, reversing changes made tof20307851e
.
19 lines
291 B
Rust
19 lines
291 B
Rust
//@ check-pass
|
|
|
|
// Make sure we don't have any false positives about the "struct is never constructed" lint.
|
|
|
|
#![deny(dead_code)]
|
|
|
|
struct Foo {
|
|
#[allow(dead_code)]
|
|
inner: u32,
|
|
}
|
|
|
|
impl From<u32> for Foo {
|
|
fn from(inner: u32) -> Self {
|
|
Self { inner }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|