rust/tests/ui/imports/extern-crate-self/extern-crate-self-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
456 B
Plaintext
Raw Normal View History

error: `extern crate self;` requires renaming
2019-01-07 09:09:17 -06:00
--> $DIR/extern-crate-self-fail.rs:1:1
|
2019-03-09 06:03:44 -06:00
LL | extern crate self;
| ^^^^^^^^^^^^^^^^^^
|
help: rename the `self` crate to be able to import it
|
LL | extern crate self as name;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-01-10 08:57:36 -06:00
error: `#[macro_use]` is not supported on `extern crate self`
2019-01-07 09:09:17 -06:00
--> $DIR/extern-crate-self-fail.rs:3:1
|
2019-03-09 06:03:44 -06:00
LL | #[macro_use]
| ^^^^^^^^^^^^
error: aborting due to 2 previous errors