#Trouble accessing method of type in `Arc`

8 messages · Page 1 of 1 (latest)

fallow willow
split elk
#

That function comes from the HasContext trait, so you need to import it.

fallow willow
#

Thanks!

#

How would I notice this myself next time?

split elk
#

You can look at the impl in the docs to see if the method comes from a trait.

pallid dove
#

first thing when an error doesn't make sense in an IDE, try checking it with cargo check in a terminal

#

rustc usually provides better error messages than the IDE