Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/test/ui/variance/variance-object-types.rs
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/variance/variance-object-types.stderr
Original file line number Diff line number Diff line change
@@ -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<dyn Fn(i32) -> &'a i32 + 'static>
Expand Down