2022-05-28 21:20:43 +00:00
|
|
|
#![feature(extern_types)]
|
2023-08-24 19:15:41 +00:00
|
|
|
#![feature(coverage_attribute)]
|
2023-04-12 13:32:15 +00:00
|
|
|
#![feature(impl_trait_in_assoc_type)]
|
2022-05-28 21:20:43 +00:00
|
|
|
#![warn(unused_attributes)]
|
2024-06-21 11:59:02 +00:00
|
|
|
#![coverage(off)]
|
2022-05-28 21:20:43 +00:00
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
trait Trait {
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
const X: u32;
|
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
type T;
|
|
|
|
|
|
|
|
type U;
|
|
|
|
}
|
|
|
|
|
2024-06-21 11:59:02 +00:00
|
|
|
#[coverage(off)]
|
2022-05-28 21:20:43 +00:00
|
|
|
impl Trait for () {
|
|
|
|
const X: u32 = 0;
|
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
type T = Self;
|
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
type U = impl Trait; //~ ERROR unconstrained opaque type
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" {
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
static X: u32;
|
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
type T;
|
|
|
|
}
|
|
|
|
|
2023-08-09 14:57:16 +00:00
|
|
|
#[coverage(off)]
|
2022-05-28 21:20:43 +00:00
|
|
|
fn main() {
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
let _ = ();
|
|
|
|
|
|
|
|
match () {
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
() => (),
|
|
|
|
}
|
|
|
|
|
2024-06-20 08:13:48 +00:00
|
|
|
#[coverage(off)] //~ ERROR attribute should be applied to a function definition or closure
|
2022-05-28 21:20:43 +00:00
|
|
|
return ();
|
|
|
|
}
|