@@ -5,53 +5,17 @@ LL | fn weird0() -> impl Sized + !Sized {}
5
5
| ^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
6
6
7
7
error[E0277]: the trait bound `(): !Sized` is not satisfied
8
- --> $DIR/opaque-type-unsatisfied-bound.rs:15:36
9
- |
10
- LL | fn weird0() -> impl Sized + !Sized {}
11
- | ^^ the trait bound `(): !Sized` is not satisfied
12
-
13
- error[E0277]: the trait bound `(): !Sized` is not satisfied
14
- --> $DIR/opaque-type-unsatisfied-bound.rs:15:1
15
- |
16
- LL | fn weird0() -> impl Sized + !Sized {}
17
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
18
-
19
- error[E0277]: the trait bound `(): !Sized` is not satisfied
20
- --> $DIR/opaque-type-unsatisfied-bound.rs:19:16
8
+ --> $DIR/opaque-type-unsatisfied-bound.rs:17:16
21
9
|
22
10
LL | fn weird1() -> impl !Sized + Sized {}
23
11
| ^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
24
12
25
13
error[E0277]: the trait bound `(): !Sized` is not satisfied
26
- --> $DIR/opaque-type-unsatisfied-bound.rs:19:36
27
- |
28
- LL | fn weird1() -> impl !Sized + Sized {}
29
- | ^^ the trait bound `(): !Sized` is not satisfied
30
-
31
- error[E0277]: the trait bound `(): !Sized` is not satisfied
32
- --> $DIR/opaque-type-unsatisfied-bound.rs:19:1
33
- |
34
- LL | fn weird1() -> impl !Sized + Sized {}
35
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
36
-
37
- error[E0277]: the trait bound `(): !Sized` is not satisfied
38
- --> $DIR/opaque-type-unsatisfied-bound.rs:23:16
14
+ --> $DIR/opaque-type-unsatisfied-bound.rs:19:16
39
15
|
40
16
LL | fn weird2() -> impl !Sized {}
41
17
| ^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
42
18
43
- error[E0277]: the trait bound `(): !Sized` is not satisfied
44
- --> $DIR/opaque-type-unsatisfied-bound.rs:23:28
45
- |
46
- LL | fn weird2() -> impl !Sized {}
47
- | ^^ the trait bound `(): !Sized` is not satisfied
48
-
49
- error[E0277]: the trait bound `(): !Sized` is not satisfied
50
- --> $DIR/opaque-type-unsatisfied-bound.rs:23:1
51
- |
52
- LL | fn weird2() -> impl !Sized {}
53
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
54
-
55
19
error[E0277]: the trait bound `impl !Trait: Trait` is not satisfied
56
20
--> $DIR/opaque-type-unsatisfied-bound.rs:12:13
57
21
|
@@ -66,6 +30,6 @@ note: required by a bound in `consume`
66
30
LL | fn consume(_: impl Trait) {}
67
31
| ^^^^^ required by this bound in `consume`
68
32
69
- error: aborting due to 10 previous errors
33
+ error: aborting due to 4 previous errors
70
34
71
35
For more information about this error, try `rustc --explain E0277`.
0 commit comments