This repository was archived by the owner on May 23, 2024. It is now read-only.
Commit f0b5ac3
committed
ices/52893.rs: fixed with errors
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `52893`
--> /home/runner/work/glacier/glacier/ices/52893.rs:1:1
|
1 | / impl<P, T, Name, F, OLIST, FINAL> AddClass<Name, F> for Class<P, T>
2 | | where
3 | | Self: At<Name>,
4 | | <Class<P, T> as At<Name>>::AtRes: Push<F>,
... |
66 | | fn to_ref(&self) -> Self::Output;
67 | | }
| |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/52893.rs`
error[E0308]: mismatched types
--> /home/runner/work/glacier/glacier/ices/52893.rs:16:22
|
1 | impl<P, T, Name, F, OLIST, FINAL> AddClass<Name, F> for Class<P, T>
| ----- this type parameter
...
16 | builder.push(output)
| ^^^^^^ expected type parameter `OLIST`, found struct `Class`
|
= note: expected type parameter `OLIST`
found struct `Class<P, OLIST>`
error[E0308]: mismatched types
--> /home/runner/work/glacier/glacier/ices/52893.rs:16:9
|
12 | fn init(self, func: F) -> Self::Output {
| ------------ expected `Class<P, _>` because of return type
...
16 | builder.push(output)
| ^^^^^^^^^^^^^^^^^^^^ expected struct `Class`, found associated type
|
= note: expected struct `Class<P, FINAL>`
found associated type `<<<Class<P, T> as At<Name>>::AtRes as Push<F>>::PushRes as Push<OLIST>>::PushRes`
= help: consider constraining the associated type `<<<Class<P, T> as At<Name>>::AtRes as Push<F>>::PushRes as Push<OLIST>>::PushRes` to `Class<P, _>`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0308, E0601.
For more information about an error, try `rustc --explain E0308`.
==============1 parent bc45e19 commit f0b5ac3
1 file changed
File renamed without changes.
0 commit comments