about summary refs log tree commit diff
path: root/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/multiple-lifetimes/error-handling.rs')
-rw-r--r--tests/ui/impl-trait/multiple-lifetimes/error-handling.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs b/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs
index 367e7f4e6ea..0f3b7506318 100644
--- a/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs
+++ b/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs
@@ -7,6 +7,7 @@ impl<T: Copy> Copy for CopyIfEq<T, T> {}
 
 type E<'a, 'b> = impl Sized;
 
+#[define_opaque(E)]
 fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
     let v = CopyIfEq::<*mut _, *mut _>(&mut { x }, &mut y);