|
| 1 | +error: bound modifier `?` can only be applied to `Sized` |
| 2 | + --> $DIR/stranded_opaque.rs:11:18 |
| 3 | + | |
| 4 | +LL | fn foo() -> impl ?Future<Output = impl Send> { |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + |
| 7 | +error[E0220]: associated type `Assoc` not found for `Trait` |
| 8 | + --> $DIR/stranded_opaque.rs:21:28 |
| 9 | + | |
| 10 | +LL | fn produce() -> impl Trait<Assoc = impl Trait> { |
| 11 | + | ^^^^^ associated type `Assoc` not found |
| 12 | + |
| 13 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied |
| 14 | + --> $DIR/stranded_opaque.rs:28:27 |
| 15 | + | |
| 16 | +LL | fn ill_formed_string() -> String<impl Trait> { |
| 17 | + | ^^^^^^------------ help: remove the unnecessary generics |
| 18 | + | | |
| 19 | + | expected 0 generic arguments |
| 20 | + |
| 21 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied |
| 22 | + --> $DIR/stranded_opaque.rs:46:25 |
| 23 | + | |
| 24 | +LL | type IllFormedString = String<impl Trait>; |
| 25 | + | ^^^^^^------------ help: remove the unnecessary generics |
| 26 | + | | |
| 27 | + | expected 0 generic arguments |
| 28 | + |
| 29 | +error: bound modifier `?` can only be applied to `Sized` |
| 30 | + --> $DIR/stranded_opaque.rs:11:18 |
| 31 | + | |
| 32 | +LL | fn foo() -> impl ?Future<Output = impl Send> { |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | + | |
| 35 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 36 | + |
| 37 | +error[E0220]: associated type `Assoc` not found for `Trait` |
| 38 | + --> $DIR/stranded_opaque.rs:21:28 |
| 39 | + | |
| 40 | +LL | fn produce() -> impl Trait<Assoc = impl Trait> { |
| 41 | + | ^^^^^ associated type `Assoc` not found |
| 42 | + | |
| 43 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 44 | + |
| 45 | +error: unconstrained opaque type |
| 46 | + --> $DIR/stranded_opaque.rs:34: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:34: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:34: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:34: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:40: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:40: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:40: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:40: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:46: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 |
| 114 | + |
| 115 | +Some errors have detailed explanations: E0107, E0220. |
| 116 | +For more information about an error, try `rustc --explain E0107`. |
0 commit comments