uses takes only the built-in effects: fs, net, time, rand, env, proc, audio_out, gui and ffi.
This name isn't one of them; the message may suggest the one you meant.
Wrong#
fn greet() uses io { print("hi") }Fixed#
fn greet() { print("hi") }Common causes#
- A typo or long form (
fss,random,times). - An effect name from another system (
io,file,http): files arefs, socketsnet. printneeds no effect at all.