diff --git a/tests/fail/leak_in_tls.rs b/tests/fail/leak_in_tls.rs
index 78a085271c..151b840380 100644
--- a/tests/fail/leak_in_tls.rs
+++ b/tests/fail/leak_in_tls.rs
@@ -1,20 +1,25 @@
//@error-in-other-file: memory leaked
+//@error-in-other-file: memory leaked
//@normalize-stderr-test: ".*│.*" -> "$$stripped$$"
+#![feature(thread_local)]
+
use std::cell::Cell;
pub fn main() {
thread_local! {
- static REF: Cell