rust/src/test/ui/maybe-bounds.rs
2018-12-25 21:08:33 -07:00

7 lines
260 B
Rust

trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits
type A1 = Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
type A2 = for<'a> Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
fn main() {}