2021-04-27 04:25:30 +00:00
|
|
|
#![crate_type = "lib"]
|
2023-08-11 19:39:20 +00:00
|
|
|
#![feature(no_coverage)] //~ ERROR feature has been removed [E0557]
|
2021-04-27 04:25:30 +00:00
|
|
|
|
2023-08-09 14:57:16 +00:00
|
|
|
#[derive(PartialEq, Eq)] // ensure deriving `Eq` does not enable `feature(coverage)`
|
2021-05-03 15:47:43 +00:00
|
|
|
struct Foo {
|
|
|
|
a: u8,
|
|
|
|
b: u32,
|
|
|
|
}
|
2021-04-27 04:25:30 +00:00
|
|
|
|
2023-08-09 14:57:16 +00:00
|
|
|
#[coverage(off)] //~ ERROR the `#[coverage]` attribute is an experimental feature
|
2023-08-11 19:39:20 +00:00
|
|
|
fn requires_feature_coverage() -> bool {
|
2021-05-03 15:47:43 +00:00
|
|
|
let bar = Foo { a: 0, b: 0 };
|
|
|
|
bar == Foo { a: 0, b: 0 }
|
|
|
|
}
|