]> git.lizzy.rs Git - rust.git/blob - src/test/ui/maybe-bounds.rs
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[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() {}