diff --git a/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs b/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
index 9c0e404cf7616..6e4709403a4d7 100644
--- a/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
+++ b/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
@@ -1,3 +1,5 @@
+// check-pass
+
 // Test that associated item impls on primitive types don't crash rustdoc
 
 // https://github.com/rust-lang/rust/issues/31808