# E0029

Warning name: `unused_package`

This warning is emitted when a package is listed as an import but no code in the
current package refers to it. Remove the import if it was left over from a
refactor, or use the package through its alias if the dependency is still
needed.

## Erroneous example

```{literalinclude} /sources/error_codes/0029_error/moon.mod.json
:caption: moon.mod.json
```

```{literalinclude} /sources/error_codes/0029_error/lib/moon.pkg.json
:caption: lib/moon.pkg.json
```

```{literalinclude} /sources/error_codes/0029_error/moon.pkg.json
:caption: moon.pkg.json
```

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

## Suggestion

Remove the unused package:

```{literalinclude} /sources/error_codes/0029_fixed/moon.pkg.json
:caption: moon.pkg.json
```
