Sakura Lang

V8002 reserved_package_name

sakura.toml names its package std or main (design §9, §17.131).

An error from the package phase. sakura explain V8002 prints this explanation offline.

sakura.toml names its package std or main (design §9, §17.131). The first segment of an import is a package name: std is the standard library and main is the package of a file run without a manifest, so a package under either name would make import std/… or import main/… mean two things.

Wrong:

[package]
name = "main"

Fixed:

[package]
name = "billing"

Wrong program

No fixture in compiler/tests/ui reports this code yet.

Fixed program

No fixed program yet; the explanation above describes the repair.

Edit on GitHub

On this page