2024-11-12 22:23:01 +01:00
|
|
|
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>::{synthetic#0}`
|
|
|
|
|
--> $DIR/unsupported.rs:22:25
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
2024-03-14 15:42:14 +03:00
|
|
|
LL | reuse to_reuse::opaque_ret;
|
|
|
|
|
| ^^^^^^^^^^
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
2024-03-14 15:42:14 +03:00
|
|
|
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
|
2024-11-12 22:23:01 +01:00
|
|
|
--> $DIR/unsupported.rs:22:25
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
2024-03-14 15:42:14 +03:00
|
|
|
LL | reuse to_reuse::opaque_ret;
|
|
|
|
|
| ^^^^^^^^^^
|
2024-11-12 22:23:01 +01:00
|
|
|
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>::{synthetic#0}`, completing the cycle
|
|
|
|
|
note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>` is well-formed
|
|
|
|
|
--> $DIR/unsupported.rs:21:5
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
2024-03-14 15:42:14 +03:00
|
|
|
LL | impl ToReuse for u8 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
2023-11-26 15:57:31 +03:00
|
|
|
|
2024-11-12 22:23:01 +01:00
|
|
|
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>::{synthetic#0}`
|
|
|
|
|
--> $DIR/unsupported.rs:25:24
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
2024-03-14 15:42:14 +03:00
|
|
|
LL | reuse ToReuse::opaque_ret;
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
|
2024-11-12 22:23:01 +01:00
|
|
|
--> $DIR/unsupported.rs:25:24
|
2024-03-14 15:42:14 +03:00
|
|
|
|
|
|
|
|
|
LL | reuse ToReuse::opaque_ret;
|
|
|
|
|
| ^^^^^^^^^^
|
2024-11-12 22:23:01 +01:00
|
|
|
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>::{synthetic#0}`, completing the cycle
|
|
|
|
|
note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>` is well-formed
|
|
|
|
|
--> $DIR/unsupported.rs:24:5
|
2024-03-14 15:42:14 +03:00
|
|
|
|
|
|
|
|
|
LL | impl ToReuse for u16 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
|
|
|
error: recursive delegation is not supported yet
|
2024-11-12 22:23:01 +01:00
|
|
|
--> $DIR/unsupported.rs:38:22
|
2023-11-26 15:57:31 +03:00
|
|
|
|
|
|
|
|
|
LL | pub reuse to_reuse2::foo;
|
|
|
|
|
| --- callee defined here
|
|
|
|
|
...
|
|
|
|
|
LL | reuse to_reuse1::foo;
|
|
|
|
|
| ^^^
|
|
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error[E0283]: type annotations needed
|
2024-11-12 22:23:01 +01:00
|
|
|
--> $DIR/unsupported.rs:48:18
|
2024-08-26 19:57:59 +03:00
|
|
|
|
|
|
|
|
|
LL | reuse Trait::foo;
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^ cannot infer type
|
|
|
|
|
|
|
|
|
|
|
= note: cannot satisfy `_: effects::Trait`
|
2024-08-26 19:57:59 +03:00
|
|
|
|
2024-11-12 22:23:01 +01:00
|
|
|
error: aborting due to 4 previous errors
|
2023-11-26 15:57:31 +03:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
Some errors have detailed explanations: E0283, E0391.
|
|
|
|
|
For more information about an error, try `rustc --explain E0283`.
|