E4116#
Found hole _.
If you want to represent unfinished code temporarily, use ... instead. Using
... allows the program to be checked while the implementation is incomplete,
whereas _ causes a compilation error. Before committing finished code, replace
the placeholder with a real expression.
Erroneous example#
///|
fn value() -> Int {
_ // Error: Found hole _
}
Suggestion#
Replace the hole with an expression of the expected type:
///|
fn value() -> Int {
0
}
///|
test {
inspect(value(), content="0")
}