rust/tests/ui/maybe-bounds.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
271 B
Rust
Raw Normal View History

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