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