Change how edition based future compatibility warnings are handled
This commit is contained in:
parent
117799b73c
commit
23176f60e7
98 changed files with 380 additions and 540 deletions
|
@ -9,15 +9,15 @@ fn main() {
|
|||
//~^ ERROR `?Trait` is not permitted in trait object types
|
||||
//~| ERROR only auto traits can be used as additional traits
|
||||
//~| WARN trait objects without an explicit `dyn` are deprecated
|
||||
//~| WARN this was previously accepted by the compiler
|
||||
//~| WARN this is valid in the current edition
|
||||
let _: Box<?Sized + (for<'a> Trait<'a>) + (Obj)>;
|
||||
//~^ ERROR `?Trait` is not permitted in trait object types
|
||||
//~| ERROR only auto traits can be used as additional traits
|
||||
//~| WARN trait objects without an explicit `dyn` are deprecated
|
||||
//~| WARN this was previously accepted by the compiler
|
||||
//~| WARN this is valid in the current edition
|
||||
let _: Box<for<'a> Trait<'a> + (Obj) + (?Sized)>;
|
||||
//~^ ERROR `?Trait` is not permitted in trait object types
|
||||
//~| ERROR only auto traits can be used as additional traits
|
||||
//~| WARN trait objects without an explicit `dyn` are deprecated
|
||||
//~| WARN this was previously accepted by the compiler
|
||||
//~| WARN this is valid in the current edition
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue