Rollup merge of #98044 - dust1:master, r=Dylan-DPC

[issues:97981] del unrelated comment

fixes https://github.com/rust-lang/rust/issues/97981
summary: del unrelated comment
This commit is contained in:
Matthias Krüger 2022-06-13 21:35:57 +02:00 committed by GitHub
commit 94443f2542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -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`.

View file

@ -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>