summary refs log tree commit diff
path: root/src/test/ui/maybe-bounds.stderr
blob: 20446c257df0995ed0dd62ce36c6d02bac14c4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: `?Trait` is not permitted in supertraits
  --> $DIR/maybe-bounds.rs:1:11
   |
LL | trait Tr: ?Sized {}
   |           ^^^^^^
   |
   = note: traits are `?Sized` by default

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bounds.rs:3:16
   |
LL | type A1 = Tr + (?Sized);
   |                ^^^^^^^^

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bounds.rs:4:24
   |
LL | type A2 = for<'a> Tr + (?Sized);
   |                        ^^^^^^^^

error: aborting due to 3 previous errors