|
| 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: bound modifier `?` can only be applied to `Sized` |
| 22 | + --> $DIR/stranded_opaque.rs:11:18 |
| 23 | + | |
| 24 | +LL | fn foo() -> impl ?Future<Output = impl Send> { |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | + | |
| 27 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 28 | + |
| 29 | +error[E0220]: associated type `Assoc` not found for `Trait` |
| 30 | + --> $DIR/stranded_opaque.rs:21:28 |
| 31 | + | |
| 32 | +LL | fn produce() -> impl Trait<Assoc = impl Trait> { |
| 33 | + | ^^^^^ associated type `Assoc` not found |
| 34 | + | |
| 35 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 36 | + |
| 37 | +error: aborting due to 5 previous errors |
| 38 | + |
| 39 | +Some errors have detailed explanations: E0107, E0220. |
| 40 | +For more information about an error, try `rustc --explain E0107`. |
0 commit comments