diff --git a/src/test/ui/issues/issue-22638.rs b/src/test/ui/issues/issue-22638.rs index 1c534ebbd435..10ea1077ede5 100644 --- a/src/test/ui/issues/issue-22638.rs +++ b/src/test/ui/issues/issue-22638.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// normalize-stderr-test: "<\[closure@.+`" -> "$$CLOSURE`" + #![allow(unused)] #![recursion_limit = "20"] diff --git a/src/test/ui/issues/issue-22638.stderr b/src/test/ui/issues/issue-22638.stderr index a549c00a341f..299d74b08b80 100644 --- a/src/test/ui/issues/issue-22638.stderr +++ b/src/test/ui/issues/issue-22638.stderr @@ -1,5 +1,5 @@ -error: reached the type-length limit while instantiating `D::matches::<[closure@/home/david/projects/rust/workdirs/rust1/s...` - --> $DIR/issue-22638.rs:60:5 +error: reached the type-length limit while instantiating `D::matches::$CLOSURE` + --> $DIR/issue-22638.rs:62:5 | LL | / pub fn matches(&self, f: &F) { LL | | //~^ ERROR reached the type-length limit while instantiating `D::matches::<[closure