Update tests.

This commit is contained in:
Alexander Regueiro 2019-03-30 22:06:09 +00:00
parent aea954b74d
commit fd7c253acc
38 changed files with 1263 additions and 64 deletions

View file

@ -4,9 +4,7 @@ fn f<T: (Copy) + (?Sized) + (for<'a> Trait<'a>)>() {}
fn main() {
let _: Box<(Copy) + (?Sized) + (for<'a> Trait<'a>)>;
//~^ ERROR `?Trait` is not permitted in trait object types
let _: Box<(?Sized) + (for<'a> Trait<'a>) + (Copy)>;
let _: Box<(for<'a> Trait<'a>) + (Copy) + (?Sized)>;
//~^ ERROR `?Trait` is not permitted in trait object types
//~| ERROR use of undeclared lifetime name `'a`
//~^ ERROR use of undeclared lifetime name `'a`
}