bynk.parse.empty_interpolation
Error An interpolation hole \(…) contains no expression.
An interpolation hole, \(…), holds one expression, whose value is written into the text. An empty \() has nothing to write. Put an expression in the hole. To write the characters \( themselves, escape the backslash: \\(.
Example
fn label(n: Int) -> String { "total: \()" // ✗ nothing to interpolate}
fn label(n: Int) -> String { "total: \(n)" // ✓}In the Book
See also
- Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.empty_interpolationshows the same from the installed toolchain, without a network.