Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issues:97981] del unrelated comment #98044

Merged
merged 3 commits into from
Jun 13, 2022
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