]> git.lizzy.rs Git - rust.git/blob - src/test/ui/maybe-bounds.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / maybe-bounds.rs
1 trait Tr: ?Sized {}
2 //~^ ERROR `?Trait` is not permitted in supertraits
3
4 type A1 = dyn Tr + (?Sized);
5 //~^ ERROR `?Trait` is not permitted in trait object types
6 type A2 = dyn for<'a> Tr + (?Sized);
7 //~^ ERROR `?Trait` is not permitted in trait object types
8
9 fn main() {}