internally change regions to be covariant
This commit is contained in:
parent
c62665e09c
commit
381187dc76
18 changed files with 43 additions and 52 deletions
|
@ -11,7 +11,7 @@ use std::mem;
|
|||
trait T { fn foo(&self); }
|
||||
|
||||
#[rustc_variance]
|
||||
struct TOption<'a> { //~ ERROR [-]
|
||||
struct TOption<'a> { //~ ERROR [+]
|
||||
v: Option<Box<dyn T + 'a>>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue