summaryrefslogtreecommitdiffstats
path: root/tests/ui/maybe-bounds.stderr
blob: 1d823b6acb2839b22d182ded2fef2dde28b15de8 (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:4:20
   |
LL | type A1 = dyn Tr + (?Sized);
   |                    ^^^^^^^^

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

error: aborting due to 3 previous errors