1 error: associated function in `impl` without body
2 --> $DIR/issue-95023.rs:6:5
4 LL | fn foo<const N: usize>(&self) -> Self::B<{N}>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
7 | help: provide a definition for the function: `{ <body> }`
9 error[E0407]: method `foo` is not a member of trait `Fn`
10 --> $DIR/issue-95023.rs:6:5
12 LL | fn foo<const N: usize>(&self) -> Self::B<{N}>;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Fn`
15 error[E0183]: manual implementations of `Fn` are experimental
16 --> $DIR/issue-95023.rs:3:6
18 LL | impl Fn(&isize) for Error {
19 | ^^^^^^^^^^ manual implementations of `Fn` are experimental
21 = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
23 error[E0229]: associated type bindings are not allowed here
24 --> $DIR/issue-95023.rs:3:6
26 LL | impl Fn(&isize) for Error {
27 | ^^^^^^^^^^ associated type not allowed here
29 error[E0220]: associated type `B` not found for `Self`
30 --> $DIR/issue-95023.rs:6:44
32 LL | fn foo<const N: usize>(&self) -> Self::B<{N}>;
33 | ^ associated type `B` not found
35 error: aborting due to 5 previous errors
37 Some errors have detailed explanations: E0183, E0220, E0229, E0407.
38 For more information about an error, try `rustc --explain E0183`.