Skip to content

Commit

Permalink
Rollup merge of #98044 - dust1:master, r=Dylan-DPC
Browse files Browse the repository at this point in the history
[issues:97981] del unrelated comment

fixes #97981
summary: del unrelated comment
  • Loading branch information
matthiaskrgr authored Jun 13, 2022
2 parents 9d27f2e + c15fed5 commit 94443f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
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

0 comments on commit 94443f2

Please sign in to comment.