@@ -5,53 +5,17 @@ LL | fn weird0() -> impl Sized + !Sized {}
55 | ^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
66
77error[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
219 |
2210LL | fn weird1() -> impl !Sized + Sized {}
2311 | ^^^^^^^^^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
2412
2513error[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
3915 |
4016LL | fn weird2() -> impl !Sized {}
4117 | ^^^^^^^^^^^ the trait bound `(): !Sized` is not satisfied
4218
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-
5519error[E0277]: the trait bound `impl !Trait: Trait` is not satisfied
5620 --> $DIR/opaque-type-unsatisfied-bound.rs:12:13
5721 |
@@ -66,6 +30,6 @@ note: required by a bound in `consume`
6630LL | fn consume(_: impl Trait) {}
6731 | ^^^^^ required by this bound in `consume`
6832
69- error: aborting due to 10 previous errors
33+ error: aborting due to 4 previous errors
7034
7135For more information about this error, try `rustc --explain E0277`.
0 commit comments