2024-06-20 19:44:36 +08:00
|
|
|
error: cannot find macro `foo` in this scope
|
|
|
|
|
--> $DIR/path-attr-in-const-block.rs:6:19
|
|
|
|
|
|
|
|
|
|
|
LL | #![path = foo!()]
|
|
|
|
|
| ^^^
|
|
|
|
|
|
2025-07-06 22:16:42 +02:00
|
|
|
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"]`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2024-06-20 19:44:36 +08:00
|
|
|
|
2025-07-06 22:16:42 +02:00
|
|
|
For more information about this error, try `rustc --explain E0539`.
|