about summary refs log tree commit diff
path: root/tests/ui/coherence/coherence-with-closure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coherence/coherence-with-closure.rs')
-rw-r--r--tests/ui/coherence/coherence-with-closure.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/coherence/coherence-with-closure.rs b/tests/ui/coherence/coherence-with-closure.rs
index 5b6a62b24d4..ac2c5584392 100644
--- a/tests/ui/coherence/coherence-with-closure.rs
+++ b/tests/ui/coherence/coherence-with-closure.rs
@@ -1,6 +1,7 @@
 // Test that encountering closures during coherence does not cause issues.
 #![feature(type_alias_impl_trait)]
 type OpaqueClosure = impl Sized;
+#[define_opaque(OpaqueClosure)]
 fn defining_use() -> OpaqueClosure {
     || ()
 }