]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/not-a-pred.stderr
Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
[rust.git] / tests / ui / parser / not-a-pred.stderr
1 error: return types are denoted using `->`
2   --> $DIR/not-a-pred.rs:1:26
3    |
4 LL | fn f(a: isize, b: isize) : lt(a, b) { }
5    |                          ^ help: use `->` instead
6
7 error[E0573]: expected type, found function `lt`
8   --> $DIR/not-a-pred.rs:1:28
9    |
10 LL | fn f(a: isize, b: isize) : lt(a, b) { }
11    |                            ^^^^^^^^ not a type
12
13 error[E0573]: expected type, found local variable `a`
14   --> $DIR/not-a-pred.rs:1:31
15    |
16 LL | fn f(a: isize, b: isize) : lt(a, b) { }
17    |                               ^ not a type
18
19 error[E0573]: expected type, found local variable `b`
20   --> $DIR/not-a-pred.rs:1:34
21    |
22 LL | fn f(a: isize, b: isize) : lt(a, b) { }
23    |                                  ^ not a type
24
25 error[E0425]: cannot find function `check` in this scope
26   --> $DIR/not-a-pred.rs:12:5
27    |
28 LL |     check (lt(a, b));
29    |     ^^^^^ not found in this scope
30
31 error: aborting due to 5 previous errors
32
33 Some errors have detailed explanations: E0425, E0573.
34 For more information about an error, try `rustc --explain E0425`.