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