mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
10 lines
271 B
Rust
10 lines
271 B
Rust
trait Tr: ?Sized {}
|
|
//~^ ERROR `?Trait` is not permitted in supertraits
|
|
|
|
type A1 = dyn Tr + (?Sized);
|
|
//~^ ERROR `?Trait` is not permitted in trait object types
|
|
type A2 = dyn for<'a> Tr + (?Sized);
|
|
//~^ ERROR `?Trait` is not permitted in trait object types
|
|
|
|
fn main() {}
|