1
Fork 0

internally change regions to be covariant

This commit is contained in:
Ali MJ Al-Nasrawy 2023-01-27 02:23:08 +03:00
parent c62665e09c
commit 381187dc76
18 changed files with 43 additions and 52 deletions

View file

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