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