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:
commit
94443f2542
2 changed files with 1 additions and 5 deletions
|
@ -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`.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue