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