2019-05-19 16:26:42 -05:00
|
|
|
trait Tr: ?Sized {}
|
|
|
|
//~^ ERROR `?Trait` is not permitted in supertraits
|
2016-10-21 19:33:36 -05:00
|
|
|
|
2019-05-01 20:21:20 -05:00
|
|
|
type A1 = dyn Tr + (?Sized);
|
2019-05-19 16:26:42 -05:00
|
|
|
//~^ ERROR `?Trait` is not permitted in trait object types
|
2019-05-01 20:21:20 -05:00
|
|
|
type A2 = dyn for<'a> Tr + (?Sized);
|
2019-05-19 16:26:42 -05:00
|
|
|
//~^ ERROR `?Trait` is not permitted in trait object types
|
2016-10-21 19:33:36 -05:00
|
|
|
|
|
|
|
fn main() {}
|