summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/wf-object/maybe-bound.stderr
blob: 2fe3f0fc39f40765363827071df61abaa2d658c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bound.rs:5:15
   |
LL | type _0 = dyn ?Sized + Foo;
   |               ^^^^^^

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bound.rs:8:21
   |
LL | type _1 = dyn Foo + ?Sized;
   |                     ^^^^^^

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bound.rs:11:21
   |
LL | type _2 = dyn Foo + ?Sized + ?Sized;
   |                     ^^^^^^

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bound.rs:11:30
   |
LL | type _2 = dyn Foo + ?Sized + ?Sized;
   |                              ^^^^^^

error: `?Trait` is not permitted in trait object types
  --> $DIR/maybe-bound.rs:15:15
   |
LL | type _3 = dyn ?Sized + Foo;
   |               ^^^^^^

error: aborting due to 5 previous errors