Skip to content

Commit a5f53d4

Browse files
authored
Rollup merge of #98044 - dust1:master, r=Dylan-DPC
[issues:97981] del unrelated comment fixes #97981 summary: del unrelated comment
2 parents 86be8b4 + c15fed5 commit a5f53d4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/test/ui/variance/variance-object-types.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
// Test that Cell is considered invariant with respect to its
2-
// type.
3-
41
#![feature(rustc_attrs)]
52

6-
use std::cell::Cell;
73

84
// For better or worse, associated types are invariant, and hence we
95
// get an invariant result for `'a`.

src/test/ui/variance/variance-object-types.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0208]: [o]
2-
--> $DIR/variance-object-types.rs:11:1
2+
--> $DIR/variance-object-types.rs:7:1
33
|
44
LL | / struct Foo<'a> {
55
LL | | x: Box<dyn Fn(i32) -> &'a i32 + 'static>

0 commit comments

Comments
 (0)