]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-83693.stderr
Rollup merge of #106712 - Ezrashaw:impl-ref-trait, r=estebank
[rust.git] / tests / 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   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
7    |
8    = note: similarly named trait `Fn` defined here
9
10 error[E0412]: cannot find type `TestResult` in this scope
11   --> $DIR/issue-83693.rs:9:22
12    |
13 LL |         <Self as Fn(&TestResult)>::call
14    |                      ^^^^^^^^^^ not found in this scope
15
16 error[E0412]: cannot find type `x` in this scope
17   --> $DIR/issue-83693.rs:16:6
18    |
19 LL |     <x as Fn(&usize)>::call
20    |      ^ not found in this scope
21
22 error[E0229]: associated type bindings are not allowed here
23   --> $DIR/issue-83693.rs:9:18
24    |
25 LL |         <Self as Fn(&TestResult)>::call
26    |                  ^^^^^^^^^^^^^^^ associated type not allowed here
27
28 error[E0229]: associated type bindings are not allowed here
29   --> $DIR/issue-83693.rs:16:11
30    |
31 LL |     <x as Fn(&usize)>::call
32    |           ^^^^^^^^^^ associated type not allowed here
33
34 error: aborting due to 5 previous errors
35
36 Some errors have detailed explanations: E0229, E0412.
37 For more information about an error, try `rustc --explain E0229`.