|
1 | 1 | error: bound modifier `?` can only be applied to `Sized` |
2 | | - --> $DIR/stranded_opaque.rs:11:18 |
| 2 | + --> $DIR/stranded_opaque.rs:12:18 |
3 | 3 | | |
4 | 4 | LL | fn foo() -> impl ?Future<Output = impl Send> { |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | 6 |
|
7 | 7 | error[E0220]: associated type `Assoc` not found for `Trait` |
8 | | - --> $DIR/stranded_opaque.rs:21:28 |
| 8 | + --> $DIR/stranded_opaque.rs:22:28 |
9 | 9 | | |
10 | 10 | LL | fn produce() -> impl Trait<Assoc = impl Trait> { |
11 | 11 | | ^^^^^ associated type `Assoc` not found |
12 | 12 |
|
13 | 13 | error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied |
14 | | - --> $DIR/stranded_opaque.rs:28:27 |
| 14 | + --> $DIR/stranded_opaque.rs:29:27 |
15 | 15 | | |
16 | 16 | LL | fn ill_formed_string() -> String<impl Trait> { |
17 | 17 | | ^^^^^^------------ help: remove the unnecessary generics |
18 | 18 | | | |
19 | 19 | | expected 0 generic arguments |
20 | 20 |
|
| 21 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied |
| 22 | + --> $DIR/stranded_opaque.rs:48:25 |
| 23 | + | |
| 24 | +LL | type IllFormedString = String<impl Trait>; |
| 25 | + | ^^^^^^------------ help: remove the unnecessary generics |
| 26 | + | | |
| 27 | + | expected 0 generic arguments |
| 28 | + |
21 | 29 | error: bound modifier `?` can only be applied to `Sized` |
22 | | - --> $DIR/stranded_opaque.rs:11:18 |
| 30 | + --> $DIR/stranded_opaque.rs:12:18 |
23 | 31 | | |
24 | 32 | LL | fn foo() -> impl ?Future<Output = impl Send> { |
25 | 33 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
26 | 34 | | |
27 | 35 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
28 | 36 |
|
29 | 37 | error[E0220]: associated type `Assoc` not found for `Trait` |
30 | | - --> $DIR/stranded_opaque.rs:21:28 |
| 38 | + --> $DIR/stranded_opaque.rs:22:28 |
31 | 39 | | |
32 | 40 | LL | fn produce() -> impl Trait<Assoc = impl Trait> { |
33 | 41 | | ^^^^^ associated type `Assoc` not found |
34 | 42 | | |
35 | 43 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
36 | 44 |
|
37 | | -error: aborting due to 5 previous errors |
| 45 | +error: unconstrained opaque type |
| 46 | + --> $DIR/stranded_opaque.rs:36:12 |
| 47 | + | |
| 48 | +LL | type Foo = impl ?Future<Output = impl Send>; |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | + | |
| 51 | + = note: `Foo` must be used in combination with a concrete type within the same crate |
| 52 | + |
| 53 | +error: bound modifier `?` can only be applied to `Sized` |
| 54 | + --> $DIR/stranded_opaque.rs:36:17 |
| 55 | + | |
| 56 | +LL | type Foo = impl ?Future<Output = impl Send>; |
| 57 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 58 | + |
| 59 | +error: bound modifier `?` can only be applied to `Sized` |
| 60 | + --> $DIR/stranded_opaque.rs:36:17 |
| 61 | + | |
| 62 | +LL | type Foo = impl ?Future<Output = impl Send>; |
| 63 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 64 | + | |
| 65 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 66 | + |
| 67 | +error: unconstrained opaque type |
| 68 | + --> $DIR/stranded_opaque.rs:36:34 |
| 69 | + | |
| 70 | +LL | type Foo = impl ?Future<Output = impl Send>; |
| 71 | + | ^^^^^^^^^ |
| 72 | + | |
| 73 | + = note: `Foo` must be used in combination with a concrete type within the same crate |
| 74 | + |
| 75 | +error: unconstrained opaque type |
| 76 | + --> $DIR/stranded_opaque.rs:42:17 |
| 77 | + | |
| 78 | +LL | type Produce = impl Trait<Assoc = impl Trait>; |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 80 | + | |
| 81 | + = note: `Produce` must be used in combination with a concrete type within the same crate |
| 82 | + |
| 83 | +error[E0220]: associated type `Assoc` not found for `Trait` |
| 84 | + --> $DIR/stranded_opaque.rs:42:28 |
| 85 | + | |
| 86 | +LL | type Produce = impl Trait<Assoc = impl Trait>; |
| 87 | + | ^^^^^ associated type `Assoc` not found |
| 88 | + |
| 89 | +error[E0220]: associated type `Assoc` not found for `Trait` |
| 90 | + --> $DIR/stranded_opaque.rs:42:28 |
| 91 | + | |
| 92 | +LL | type Produce = impl Trait<Assoc = impl Trait>; |
| 93 | + | ^^^^^ associated type `Assoc` not found |
| 94 | + | |
| 95 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 96 | + |
| 97 | +error: unconstrained opaque type |
| 98 | + --> $DIR/stranded_opaque.rs:42:36 |
| 99 | + | |
| 100 | +LL | type Produce = impl Trait<Assoc = impl Trait>; |
| 101 | + | ^^^^^^^^^^ |
| 102 | + | |
| 103 | + = note: `Produce` must be used in combination with a concrete type within the same crate |
| 104 | + |
| 105 | +error: unconstrained opaque type |
| 106 | + --> $DIR/stranded_opaque.rs:48:32 |
| 107 | + | |
| 108 | +LL | type IllFormedString = String<impl Trait>; |
| 109 | + | ^^^^^^^^^^ |
| 110 | + | |
| 111 | + = note: `IllFormedString` must be used in combination with a concrete type within the same crate |
| 112 | + |
| 113 | +error: aborting due to 15 previous errors |
38 | 114 |
|
39 | 115 | Some errors have detailed explanations: E0107, E0220. |
40 | 116 | For more information about an error, try `rustc --explain E0107`. |
0 commit comments