]> git.lizzy.rs Git - rust.git/blob - tests/ui/maybe-bounds.stderr
Optimize `TyKind::eq`.
[rust.git] / tests / ui / maybe-bounds.stderr
1 error: `?Trait` is not permitted in supertraits
2   --> $DIR/maybe-bounds.rs:1:11
3    |
4 LL | trait Tr: ?Sized {}
5    |           ^^^^^^
6    |
7    = note: traits are `?Sized` by default
8
9 error: `?Trait` is not permitted in trait object types
10   --> $DIR/maybe-bounds.rs:4:20
11    |
12 LL | type A1 = dyn Tr + (?Sized);
13    |                    ^^^^^^^^
14
15 error: `?Trait` is not permitted in trait object types
16   --> $DIR/maybe-bounds.rs:6:28
17    |
18 LL | type A2 = dyn for<'a> Tr + (?Sized);
19    |                            ^^^^^^^^
20
21 error: aborting due to 3 previous errors
22