I was running into some warnings while trying to make some java bindings for the triangle example. I added a log callback into the C example to see if it was a problem in my code, but the same warning appeared. It appears that when wgpu_device_create_shader_module is called for the vertex shader, the following warning is logged:
WARN: Failed to parse shader SPIR-V code: UnsupportedInstruction(Function, Variable)
WARN: Shader module will not be validated