Skip to content

Commit

Permalink
Test that CpuId::new() continues to produce something that impls Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey authored and gz committed May 3, 2023
1 parent bb82f81 commit 04e192a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ mod i5_3337u;
mod i7_12700k;
mod ryzen_matisse;
mod xeon_gold_6252;

use crate::*;

#[test]
fn cpuid_impls_debug() {
fn debug_required<T: Debug>(t: T) {
}

debug_required(CpuId::new());
}

0 comments on commit 04e192a

Please sign in to comment.