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 07:09:17 -08:00
--> $DIR/extern-crate-self-fail.rs:1:1
|
2019-03-09 15:03:44 +03: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 14:57:36 +00:00
error: `#[macro_use]` is not supported on `extern crate self`
2019-01-07 07:09:17 -08:00
--> $DIR/extern-crate-self-fail.rs:3:1
|
2019-03-09 15:03:44 +03:00
LL | #[macro_use]
| ^^^^^^^^^^^^
error: aborting due to 2 previous errors