2021-04-26 23:25:30 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2021-05-03 10:47:43 -05:00
|
|
|
#[derive(PartialEq, Eq)] // ensure deriving `Eq` does not enable `feature(no_coverage)`
|
|
|
|
struct Foo {
|
|
|
|
a: u8,
|
|
|
|
b: u32,
|
|
|
|
}
|
2021-04-26 23:25:30 -05:00
|
|
|
|
|
|
|
#[no_coverage] //~ ERROR the `#[no_coverage]` attribute is an experimental feature
|
2021-05-03 10:47:43 -05:00
|
|
|
fn requires_feature_no_coverage() -> bool {
|
|
|
|
let bar = Foo { a: 0, b: 0 };
|
|
|
|
bar == Foo { a: 0, b: 0 }
|
|
|
|
}
|