···22source: compiler-core/src/type_/tests/warnings.rs
33expression: "\n pub fn wibble(_) { 1 }\n pub fn main() {\n 1 |> panic |> wibble\n }\n "
44---
55-warning: Panic used as a function
66- ┌─ /src/warning/wrn.gleam:4:13
77- │
88-4 │ 1 |> panic |> wibble
99- │ ^
1010-1111-`panic` is not a function and will crash before it can do anything with
1212-this argument.
1313-1414-Hint: if you want to display an error message you should write
1515-`panic as "my error message"`
1616-See: https://tour.gleam.run/advanced-features/panic/
1717-185warning: Unreachable code
196 ┌─ /src/warning/wrn.gleam:4:27
207 │
···22source: compiler-core/src/type_/tests/warnings.rs
33expression: "\n pub fn wibble(_) { 1 }\n pub fn main() {\n 1 |> wibble |> panic\n \"unreachable\"\n }\n "
44---
55-warning: Panic used as a function
66- ┌─ /src/warning/wrn.gleam:4:13
77- │
88-4 │ 1 |> wibble |> panic
99- │ ^^^^^^^^^^^
1010-1111-`panic` is not a function and will crash before it can do anything with
1212-this argument.
1313-1414-Hint: if you want to display an error message you should write
1515-`panic as "my error message"`
1616-See: https://tour.gleam.run/advanced-features/panic/
1717-185warning: Unreachable code
196 ┌─ /src/warning/wrn.gleam:5:13
207 │