]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-83693.stderr
Rollup merge of #100984 - ChrisDenton:reinstate-init, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / issue-83693.stderr
1 error[E0412]: cannot find type `F` in this scope
2   --> $DIR/issue-83693.rs:6:6
3    |
4 LL | impl F {
5    |      ^ help: a trait with a similar name exists: `Fn`
6    |
7   ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
8    |
9 LL | pub trait Fn<Args>: FnMut<Args> {
10    | ------------------------------- similarly named trait `Fn` defined here
11
12 error[E0412]: cannot find type `TestResult` in this scope
13   --> $DIR/issue-83693.rs:9:22
14    |
15 LL |         <Self as Fn(&TestResult)>::call
16    |                      ^^^^^^^^^^ not found in this scope
17
18 error[E0412]: cannot find type `x` in this scope
19   --> $DIR/issue-83693.rs:16:6
20    |
21 LL |     <x as Fn(&usize)>::call
22    |      ^ not found in this scope
23
24 error[E0229]: associated type bindings are not allowed here
25   --> $DIR/issue-83693.rs:9:18
26    |
27 LL |         <Self as Fn(&TestResult)>::call
28    |                  ^^^^^^^^^^^^^^^ associated type not allowed here
29
30 error[E0229]: associated type bindings are not allowed here
31   --> $DIR/issue-83693.rs:16:11
32    |
33 LL |     <x as Fn(&usize)>::call
34    |           ^^^^^^^^^^ associated type not allowed here
35
36 error: aborting due to 5 previous errors
37
38 Some errors have detailed explanations: E0229, E0412.
39 For more information about an error, try `rustc --explain E0229`.