diff --git a/src/test/compile-fail/object-lifetime-default.rs b/src/test/compile-fail/object-lifetime-default.rs index 73f71751ee8..ac03c085b7b 100644 --- a/src/test/compile-fail/object-lifetime-default.rs +++ b/src/test/compile-fail/object-lifetime-default.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(rustc_attrs)] + #[rustc_object_lifetime_default] struct A(T); //~ ERROR None diff --git a/src/test/compile-fail/region-object-lifetime-1.rs b/src/test/compile-fail/region-object-lifetime-1.rs index bb37d55fb08..2095fb903b8 100644 --- a/src/test/compile-fail/region-object-lifetime-1.rs +++ b/src/test/compile-fail/region-object-lifetime-1.rs @@ -11,6 +11,7 @@ // Various tests related to testing how region inference works // with respect to the object receivers. +#![feature(rustc_attrs)] #![allow(warnings)] trait Foo { diff --git a/src/test/compile-fail/region-object-lifetime-3.rs b/src/test/compile-fail/region-object-lifetime-3.rs index 7f00334f67e..097053276c7 100644 --- a/src/test/compile-fail/region-object-lifetime-3.rs +++ b/src/test/compile-fail/region-object-lifetime-3.rs @@ -11,6 +11,7 @@ // Various tests related to testing how region inference works // with respect to the object receivers. +#![feature(rustc_attrs)] #![allow(warnings)] trait Foo {