OxL Справочник OxL
РусскийEnglish

error unresolved-import

error Стандарт: [§2.2]

Путь импорта не найден.

What it means#

A use declaration names a module or item that does not exist (§2.2). The first segment is valid (std, self, super or a dependency), but a later segment does not lead to a module of the package or to a public item.

Example#

oxl✓ проверяется в CI
use std.tme { sleep }      // <- unresolved-import (the module is called std.time)

fn main() io, time { sleep(1ms) }
error
unresolved-import

How to fix#

oxl✓ проверяется в CI
use std.time { sleep }

fn main() io, time { sleep(1ms) }

Check the module directory names under src/ and the item names. If the root is wrong, see bad-import-root.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства