Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 22, 2025

Prior to #61, this would fail.

error: expected expression, found `<eof>`
 --> /home/runner/work/rustversion/rustversion/target/debug/build/rustversion-3dc54cd5d21b9264/out/version.expr:1:2
  |
1 |
  | ^ expected expression
error: non-expression macro in expression position: include
   --> src/lib.rs:217:30
    |
217 | const RUSTVERSION: Version = include!(concat!(env!("OUT_DIR"), "/version.expr"));
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: could not compile `rustversion` (lib) due to 2 previous errors

@dtolnay dtolnay merged commit 1491c25 into master May 22, 2025
19 checks passed
@dtolnay dtolnay deleted the ci branch May 22, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants