diff --git a/src/test/ui/variance/variance-object-types.rs b/src/test/ui/variance/variance-object-types.rs index 14e11f681b100..6ded24cd1e9ed 100644 --- a/src/test/ui/variance/variance-object-types.rs +++ b/src/test/ui/variance/variance-object-types.rs @@ -1,9 +1,5 @@ -// Test that Cell is considered invariant with respect to its -// type. - #![feature(rustc_attrs)] -use std::cell::Cell; // For better or worse, associated types are invariant, and hence we // get an invariant result for `'a`. diff --git a/src/test/ui/variance/variance-object-types.stderr b/src/test/ui/variance/variance-object-types.stderr index d97d222e711ad..2a5d8f91e1ec9 100644 --- a/src/test/ui/variance/variance-object-types.stderr +++ b/src/test/ui/variance/variance-object-types.stderr @@ -1,5 +1,5 @@ error[E0208]: [o] - --> $DIR/variance-object-types.rs:11:1 + --> $DIR/variance-object-types.rs:7:1 | LL | / struct Foo<'a> { LL | | x: Box &'a i32 + 'static>