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