@@ -14,15 +14,6 @@ LL | fn weird0() -> impl Sized + !Sized {}
14
14
|
15
15
= help: the trait bound `(): !Sized` is not satisfied
16
16
17
- error[E0277]: the size for values of type `impl !Sized + Sized` cannot be known at compilation time
18
- --> $DIR/opaque-type-unsatisfied-bound.rs:15:16
19
- |
20
- LL | fn weird0() -> impl Sized + !Sized {}
21
- | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
22
- |
23
- = help: the trait `Sized` is not implemented for `impl !Sized + Sized`
24
- = note: the return type of a function must have a statically known size
25
-
26
17
error[E0277]: the size for values of type `()` cannot be known at compilation time
27
18
--> $DIR/opaque-type-unsatisfied-bound.rs:15:1
28
19
|
@@ -32,65 +23,47 @@ LL | fn weird0() -> impl Sized + !Sized {}
32
23
= help: the trait bound `(): !Sized` is not satisfied
33
24
34
25
error[E0277]: the size for values of type `()` cannot be known at compilation time
35
- --> $DIR/opaque-type-unsatisfied-bound.rs:20 :16
26
+ --> $DIR/opaque-type-unsatisfied-bound.rs:19 :16
36
27
|
37
28
LL | fn weird1() -> impl !Sized + Sized {}
38
29
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
39
30
|
40
31
= help: the trait bound `(): !Sized` is not satisfied
41
32
42
33
error[E0277]: the size for values of type `()` cannot be known at compilation time
43
- --> $DIR/opaque-type-unsatisfied-bound.rs:20 :36
34
+ --> $DIR/opaque-type-unsatisfied-bound.rs:19 :36
44
35
|
45
36
LL | fn weird1() -> impl !Sized + Sized {}
46
37
| ^^ doesn't have a size known at compile-time
47
38
|
48
39
= help: the trait bound `(): !Sized` is not satisfied
49
40
50
- error[E0277]: the size for values of type `impl !Sized + Sized` cannot be known at compilation time
51
- --> $DIR/opaque-type-unsatisfied-bound.rs:20:16
52
- |
53
- LL | fn weird1() -> impl !Sized + Sized {}
54
- | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
55
- |
56
- = help: the trait `Sized` is not implemented for `impl !Sized + Sized`
57
- = note: the return type of a function must have a statically known size
58
-
59
41
error[E0277]: the size for values of type `()` cannot be known at compilation time
60
- --> $DIR/opaque-type-unsatisfied-bound.rs:20 :1
42
+ --> $DIR/opaque-type-unsatisfied-bound.rs:19 :1
61
43
|
62
44
LL | fn weird1() -> impl !Sized + Sized {}
63
45
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
64
46
|
65
47
= help: the trait bound `(): !Sized` is not satisfied
66
48
67
49
error[E0277]: the size for values of type `()` cannot be known at compilation time
68
- --> $DIR/opaque-type-unsatisfied-bound.rs:25 :16
50
+ --> $DIR/opaque-type-unsatisfied-bound.rs:23 :16
69
51
|
70
52
LL | fn weird2() -> impl !Sized {}
71
53
| ^^^^^^^^^^^ doesn't have a size known at compile-time
72
54
|
73
55
= help: the trait bound `(): !Sized` is not satisfied
74
56
75
57
error[E0277]: the size for values of type `()` cannot be known at compilation time
76
- --> $DIR/opaque-type-unsatisfied-bound.rs:25 :28
58
+ --> $DIR/opaque-type-unsatisfied-bound.rs:23 :28
77
59
|
78
60
LL | fn weird2() -> impl !Sized {}
79
61
| ^^ doesn't have a size known at compile-time
80
62
|
81
63
= help: the trait bound `(): !Sized` is not satisfied
82
64
83
- error[E0277]: the size for values of type `impl !Sized` cannot be known at compilation time
84
- --> $DIR/opaque-type-unsatisfied-bound.rs:25:16
85
- |
86
- LL | fn weird2() -> impl !Sized {}
87
- | ^^^^^^^^^^^ doesn't have a size known at compile-time
88
- |
89
- = help: the trait `Sized` is not implemented for `impl !Sized`
90
- = note: the return type of a function must have a statically known size
91
-
92
65
error[E0277]: the size for values of type `()` cannot be known at compilation time
93
- --> $DIR/opaque-type-unsatisfied-bound.rs:25 :1
66
+ --> $DIR/opaque-type-unsatisfied-bound.rs:23 :1
94
67
|
95
68
LL | fn weird2() -> impl !Sized {}
96
69
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -111,6 +84,6 @@ note: required by a bound in `consume`
111
84
LL | fn consume(_: impl Trait) {}
112
85
| ^^^^^ required by this bound in `consume`
113
86
114
- error: aborting due to 13 previous errors
87
+ error: aborting due to 10 previous errors
115
88
116
89
For more information about this error, try `rustc --explain E0277`.
0 commit comments