mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 14:34:23 +00:00
14 lines
344 B
Rust
14 lines
344 B
Rust
#![crate_type = "lib"]
|
|
|
|
#[derive(PartialEq, Eq)] // ensure deriving `Eq` does not enable `feature(no_coverage)`
|
|
struct Foo {
|
|
a: u8,
|
|
b: u32,
|
|
}
|
|
|
|
#[no_coverage] //~ ERROR the `#[no_coverage]` attribute is an experimental feature
|
|
fn requires_feature_no_coverage() -> bool {
|
|
let bar = Foo { a: 0, b: 0 };
|
|
bar == Foo { a: 0, b: 0 }
|
|
}
|