Skip to content

Commit

Permalink
condition test on rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Mar 13, 2023
1 parent 16d8476 commit 87beb10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ typenum = "1.16.0"

[dev-dependencies]
trybuild = {version = "1.0.77", features = ["diff"]}
rustversion = "1.0"
2 changes: 2 additions & 0 deletions src/unit_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use crate::{
mod sponge_instance;
use sponge_instance::BasicSponge;

// This pattern-matches the type checker output, so works only on stable
#[rustversion::stable]
#[test]
fn illegal_api_uses() {
let t = trybuild::TestCases::new();
Expand Down

0 comments on commit 87beb10

Please sign in to comment.