|
1 |
| -error[E0308]: mismatched types |
2 |
| - --> $DIR/bad-return-type.rs:13:11 |
3 |
| - | |
4 |
| -13 | yield val; |
5 |
| - | ^^^ |
6 |
| - | | |
7 |
| - | expected enum `std::option::Option`, found integer |
8 |
| - | help: try using a variant of the expected type: `Some(val)` |
9 |
| - | |
10 |
| - = note: expected type `std::option::Option<_>` |
11 |
| - found type `{integer}` |
12 |
| - |
13 |
| -error[E0698]: type inside generator must be known in this context |
14 |
| - --> $DIR/bad-return-type.rs:7:9 |
| 1 | +error[E0464]: multiple matching crates for `futures` |
| 2 | + --> $DIR/bad-return-type.rs:3:5 |
15 | 3 | |
|
16 |
| -7 | let val = Some(42); |
17 |
| - | ^^^ |
| 4 | +3 | use futures::*; |
| 5 | + | ^^^^^^^ |
18 | 6 | |
|
19 |
| -note: the type is part of the generator because of this `yield` |
20 |
| - --> $DIR/bad-return-type.rs:5:1 |
21 |
| - | |
22 |
| -5 | #[async_stream] |
23 |
| - | ^^^^^^^^^^^^^^^ |
24 |
| - |
25 |
| -error[E0698]: type inside generator must be known in this context |
26 |
| - --> $DIR/bad-return-type.rs:12:9 |
27 |
| - | |
28 |
| -12 | let val = val.unwrap(); |
29 |
| - | ^^^ |
30 |
| - | |
31 |
| -note: the type is part of the generator because of this `yield` |
32 |
| - --> $DIR/bad-return-type.rs:5:1 |
33 |
| - | |
34 |
| -5 | #[async_stream] |
35 |
| - | ^^^^^^^^^^^^^^^ |
36 |
| - |
37 |
| -error[E0698]: type inside generator must be known in this context |
38 |
| - --> $DIR/bad-return-type.rs:13:11 |
39 |
| - | |
40 |
| -13 | yield val; |
41 |
| - | ^^^ |
42 |
| - | |
43 |
| -note: the type is part of the generator because of this `yield` |
44 |
| - --> $DIR/bad-return-type.rs:5:1 |
45 |
| - | |
46 |
| -5 | #[async_stream] |
47 |
| - | ^^^^^^^^^^^^^^^ |
48 |
| - |
49 |
| -error[E0308]: mismatched types |
50 |
| - --> $DIR/bad-return-type.rs:21:11 |
51 |
| - | |
52 |
| -21 | yield (1, 2) |
53 |
| - | ^^^^^^ expected integer, found tuple |
54 |
| - | |
55 |
| - = note: expected type `{integer}` |
56 |
| - found type `({integer}, {integer})` |
57 |
| - |
58 |
| -error[E0271]: type mismatch resolving `<impl futures_core::stream::Stream as futures_core::stream::Stream>::Item == (i32, i32)` |
59 |
| - --> $DIR/bad-return-type.rs:17:15 |
60 |
| - | |
61 |
| -17 | fn tuple() -> (i32, i32) { |
62 |
| - | ^^^^^^^^^^ expected integer, found tuple |
63 |
| - | |
64 |
| - = note: expected type `{integer}` |
65 |
| - found type `(i32, i32)` |
66 |
| - = note: the return type of a function must have a statically known size |
67 |
| - |
68 |
| -error[E0698]: type inside generator must be known in this context |
69 |
| - --> $DIR/bad-return-type.rs:16:1 |
70 |
| - | |
71 |
| -16 | #[async_stream] |
72 |
| - | ^^^^^^^^^^^^^^^ |
73 |
| - | |
74 |
| -note: the type is part of the generator because of this `yield` |
75 |
| - --> $DIR/bad-return-type.rs:16:1 |
76 |
| - | |
77 |
| -16 | #[async_stream] |
78 |
| - | ^^^^^^^^^^^^^^^ |
| 7 | + = note: candidates: |
| 8 | + crate `futures`: /?/C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/libfutures-ab3575aa90d1182f.rlib |
| 9 | + crate `futures`: /?/C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/libfutures-de463abd0441f2c0.rlib |
79 | 10 |
|
80 |
| -error[E0698]: type inside generator must be known in this context |
81 |
| - --> $DIR/bad-return-type.rs:19:15 |
82 |
| - | |
83 |
| -19 | yield 3; |
84 |
| - | ^ |
85 |
| - | |
86 |
| -note: the type is part of the generator because of this `yield` |
87 |
| - --> $DIR/bad-return-type.rs:16:1 |
| 11 | +error[E0658]: The attribute `async_stream` is currently unknown to the compiler and may have meaning added to it in the future |
| 12 | + --> $DIR/bad-return-type.rs:16:3 |
88 | 13 | |
|
89 | 14 | 16 | #[async_stream]
|
90 |
| - | ^^^^^^^^^^^^^^^ |
91 |
| - |
92 |
| -error[E0698]: type inside generator must be known in this context |
93 |
| - --> $DIR/bad-return-type.rs:21:12 |
| 15 | + | ^^^^^^^^^^^^ |
94 | 16 | |
|
95 |
| -21 | yield (1, 2) |
96 |
| - | ^ |
97 |
| - | |
98 |
| -note: the type is part of the generator because of this `yield` |
99 |
| - --> $DIR/bad-return-type.rs:16:1 |
100 |
| - | |
101 |
| -16 | #[async_stream] |
102 |
| - | ^^^^^^^^^^^^^^^ |
| 17 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 18 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
103 | 19 |
|
104 |
| -error[E0698]: type inside generator must be known in this context |
105 |
| - --> $DIR/bad-return-type.rs:21:15 |
106 |
| - | |
107 |
| -21 | yield (1, 2) |
108 |
| - | ^ |
109 |
| - | |
110 |
| -note: the type is part of the generator because of this `yield` |
111 |
| - --> $DIR/bad-return-type.rs:16:1 |
112 |
| - | |
113 |
| -16 | #[async_stream] |
114 |
| - | ^^^^^^^^^^^^^^^ |
| 20 | +error[E0658]: The attribute `async_stream` is currently unknown to the compiler and may have meaning added to it in the future |
| 21 | + --> $DIR/bad-return-type.rs:5:3 |
| 22 | + | |
| 23 | +5 | #[async_stream] |
| 24 | + | ^^^^^^^^^^^^ |
| 25 | + | |
| 26 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 27 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
115 | 28 |
|
116 |
| -error[E0698]: type inside generator must be known in this context |
117 |
| - --> $DIR/bad-return-type.rs:21:11 |
118 |
| - | |
119 |
| -21 | yield (1, 2) |
120 |
| - | ^^^^^^ |
121 |
| - | |
122 |
| -note: the type is part of the generator because of this `yield` |
123 |
| - --> $DIR/bad-return-type.rs:16:1 |
124 |
| - | |
125 |
| -16 | #[async_stream] |
126 |
| - | ^^^^^^^^^^^^^^^ |
| 29 | +error[E0462]: found staticlib `futures` instead of rlib or dylib |
| 30 | + --> $DIR/bad-return-type.rs:3:5 |
| 31 | + | |
| 32 | +3 | use futures::*; |
| 33 | + | ^^^^^^^ |
| 34 | + | |
| 35 | + = help: please recompile that crate using --crate-type lib |
| 36 | + = note: the following crate versions were found: |
| 37 | + crate `futures`: C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/futures_async_macro-6fe61ad28e230c4f.dll.lib |
| 38 | + crate `futures`: C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/futures_async_macro-c9208ab326ad6843.dll.lib |
| 39 | + crate `futures`: C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/futures_async_macro-ef27c17cb2f8782e.dll.lib |
| 40 | + crate `futures`: C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/futures_select_macro-64b799643d932556.dll.lib |
| 41 | + crate `futures`: C:/Users/tajmi/rust/local/futures-rs/futures/testcrate/target/debug/deps/futures_select_macro-6cda628dd9ad7c4f.dll.lib |
127 | 42 |
|
128 |
| -error: aborting due to 11 previous errors |
| 43 | +error: aborting due to 4 previous errors |
129 | 44 |
|
130 |
| -Some errors have detailed explanations: E0271, E0308. |
131 |
| -For more information about an error, try `rustc --explain E0271`. |
| 45 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments