]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-no_coverage.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / feature-gates / feature-gate-no_coverage.rs
CommitLineData
cdc7bbd5
XL
1#![crate_type = "lib"]
2
3#[derive(PartialEq, Eq)] // ensure deriving `Eq` does not enable `feature(no_coverage)`
4struct Foo {
5 a: u8,
6 b: u32,
7}
8
9#[no_coverage] //~ ERROR the `#[no_coverage]` attribute is an experimental feature
10fn requires_feature_no_coverage() -> bool {
11 let bar = Foo { a: 0, b: 0 };
12 bar == Foo { a: 0, b: 0 }
13}