activate assoc item test

This commit is contained in:
Kartavya Vashishtha 2022-08-07 20:39:11 +05:30
parent 634cfe3d72
commit 1883d1f141
No known key found for this signature in database
GPG Key ID: A50012C2324E5DF0

View File

@ -112,12 +112,12 @@ fn inactive_assoc_item() {
struct Foo;
impl Foo {
#[cfg(any())] pub fn f() {}
//*************************** weak: code is inactive due to #[cfg] directives
//^^^^^^^^^^^^^^^^^^^^^^^^^^^ weak: code is inactive due to #[cfg] directives
}
trait Bar {
#[cfg(any())] pub fn f() {}
//*************************** weak: code is inactive due to #[cfg] directives
//^^^^^^^^^^^^^^^^^^^^^^^^^^^ weak: code is inactive due to #[cfg] directives
}
"#,
);