Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ce74f60

Browse files
committed
ices/74244.rs: fixed with errors
=== stdout === === stderr === error[E0658]: `impl Trait` in type aliases is unstable --> /home/runner/work/glacier/glacier/ices/74244.rs:15:10 | 15 | type A = impl Fn(Matrix<<DefaultAllocator as Allocator<()>>::Buffer>); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #63063 <rust-lang/rust#63063> for more information = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable error[E0392]: parameter `T` is never used --> /home/runner/work/glacier/glacier/ices/74244.rs:1:15 | 1 | struct Matrix<T>; | ^ unused parameter | = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` error[E0392]: parameter `T` is never used --> /home/runner/work/glacier/glacier/ices/74244.rs:7:21 | 7 | struct ArrayStorage<T> {} | ^ unused parameter | = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` error[E0277]: expected a `Fn<(Matrix<ArrayStorage<()>>,)>` closure, found `impl Fn<(Matrix<<DefaultAllocator as Allocator<()>>::Buffer>,)>` --> /home/runner/work/glacier/glacier/ices/74244.rs:17:13 | 15 | type A = impl Fn(Matrix<<DefaultAllocator as Allocator<()>>::Buffer>); | ------------------------------------------------------- required by this bound in `A::{opaque#0}` 16 | 17 | fn foo() -> A { | ^ expected an `Fn<(Matrix<ArrayStorage<()>>,)>` closure, found `impl Fn<(Matrix<<DefaultAllocator as Allocator<()>>::Buffer>,)>` | = help: the trait `Fn<(Matrix<ArrayStorage<()>>,)>` is not implemented for `impl Fn<(Matrix<<DefaultAllocator as Allocator<()>>::Buffer>,)>` error: aborting due to 4 previous errors Some errors have detailed explanations: E0277, E0392, E0658. For more information about an error, try `rustc --explain E0277`. ==============
1 parent c758f7f commit ce74f60

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)