summaryrefslogtreecommitdiffstats
path: root/tests/ui/maybe-bounds.rs
blob: 02ed45c656f1c533ccf9faa8ee738906e62b5678 (plain)
1
2
3
4
5
6
7
8
9
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() {}