]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-95023.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / issue-95023.stderr
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
28
29 error[E0220]: associated type `B` not found for `Self`
30   --> $DIR/issue-95023.rs:6:44
31    |
32 LL |     fn foo<const N: usize>(&self) -> Self::B<{N}>;
33    |                                            ^ associated type `B` not found
34
35 error: aborting due to 5 previous errors
36
37 Some errors have detailed explanations: E0183, E0220, E0229, E0407.
38 For more information about an error, try `rustc --explain E0183`.