dtolnay / dtolnay/rustversion

rustversion::before(date) matches stable version

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
394
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Building the following:
```
#[rustversion::before(2020-01-01)]
fn main() {
println!("Hello, world!");
}
```
fails as expected with recent nightlies (because of the missing main function in that case) but compiles just fine with 1.51.0.

since() is limited to nightlies. It seems before() should too.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.