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