| 1 |
--- |
| 2 |
source: codespan-reporting/tests/term.rs |
| 3 |
expression: TEST_DATA.emit_color(&config) |
| 4 |
--- |
| 5 |
{fg:Red bold bright}error{bold bright}: unknown builtin: `NATRAL`{/} |
| 6 |
{fg:Blue}┌─{/} Data/Nat.fun:7:13 |
| 7 |
{fg:Blue}│{/} |
| 8 |
{fg:Blue}7{/} {fg:Blue}│{/} {-# BUILTIN {fg:Red}NATRAL{/} Nat #-} |
| 9 |
{fg:Blue}│{/} {fg:Red}^^^^^^{/} {fg:Red}unknown builtin{/} |
| 10 |
{fg:Blue}│{/} |
| 11 |
{fg:Blue}={/} there is a builtin with a similar name: `NATURAL` |
| 12 |
|
| 13 |
{fg:Yellow bold bright}warning{bold bright}: unused parameter pattern: `n₂`{/} |
| 14 |
{fg:Blue}┌─{/} Data/Nat.fun:17:16 |
| 15 |
{fg:Blue}│{/} |
| 16 |
{fg:Blue}17{/} {fg:Blue}│{/} zero - succ {fg:Yellow}n₂{/} = zero |
| 17 |
{fg:Blue}│{/} {fg:Yellow}^^{/} {fg:Yellow}unused parameter{/} |
| 18 |
{fg:Blue}│{/} |
| 19 |
{fg:Blue}={/} consider using a wildcard pattern: `_` |
| 20 |
|
| 21 |
{fg:Red bold bright}error[E0001]{bold bright}: unexpected type in application of `_+_`{/} |
| 22 |
{fg:Blue}┌─{/} Test.fun:4:11 |
| 23 |
{fg:Blue}│{/} |
| 24 |
{fg:Blue} 4{/} {fg:Blue}│{/} _ = 123 + {fg:Red}"hello"{/} |
| 25 |
{fg:Blue}│{/} {fg:Red}^^^^^^^{/} {fg:Red}expected `Nat`, found `String`{/} |
| 26 |
{fg:Blue}│{/} |
| 27 |
{fg:Blue}┌─{/} Data/Nat.fun:11:1 |
| 28 |
{fg:Blue}│{/} |
| 29 |
{fg:Blue}11{/} {fg:Blue}│{/} _+_ : Nat → Nat → Nat |
| 30 |
{fg:Blue}│{/} {fg:Blue}---------------------{/} {fg:Blue}based on the definition of `_+_`{/} |
| 31 |
{fg:Blue}│{/} |
| 32 |
{fg:Blue}={/} expected type `Nat` |
| 33 |
found type `String` |
| 34 |
|
| 35 |
|