# E3005

There is no such visibility for the entity (function, type, trait, and so on).

Usually, this means that you put a `priv` visibility modifier on an entity that
is private by default.

See the [Access Control](/language/packages.md#access-control) section for a
detailed explanation on the visibility in MoonBit.

## Erroneous example

```{literalinclude} /sources/error_codes/3005_error/top.mbt
:language: moonbit
```

## Suggestion

Remove the visibility modifier from the definition of the entity:

```{literalinclude} /sources/error_codes/3005_fixed/top.mbt
:language: moonbit
```
