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.