Skip to content

Commit 693a6cd

Browse files
committed
Add feature gate to tests that use std
1 parent 349f696 commit 693a6cd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/test_expr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ fn test_rustup() {
9090
}
9191

9292
// Regression test for https://github.com/dtolnay/thiserror/issues/335
93+
#[cfg(feature = "std")]
9394
#[test]
9495
#[allow(non_snake_case)]
9596
fn test_assoc_type_equality_constraint() {

tests/test_path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "std")]
2+
13
use core::fmt::Display;
24
use ref_cast::RefCast;
35
use std::path::{Path, PathBuf};

0 commit comments

Comments
 (0)