mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00
21 lines
679 B
Plaintext
21 lines
679 B
Plaintext
error: cannot find macro `foo` in this scope
|
|
--> $DIR/path-attr-in-const-block.rs:6:19
|
|
|
|
|
LL | #![path = foo!()]
|
|
| ^^^
|
|
|
|
error[E0539]: malformed `path` attribute input
|
|
--> $DIR/path-attr-in-const-block.rs:6:9
|
|
|
|
|
LL | #![path = foo!()]
|
|
| ^^^^^^^^^^------^
|
|
| | |
|
|
| | expected a string literal here
|
|
| help: must be of the form: `#[path = "file"]`
|
|
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/modules.html#the-path-attribute>
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0539`.
|