about summary refs log tree commit diff
path: root/tests/ui/impl-trait/where-allowed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/where-allowed.rs')
-rw-r--r--tests/ui/impl-trait/where-allowed.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/where-allowed.rs b/tests/ui/impl-trait/where-allowed.rs
index 3f435f0f443..1c3c66c537f 100644
--- a/tests/ui/impl-trait/where-allowed.rs
+++ b/tests/ui/impl-trait/where-allowed.rs
@@ -157,6 +157,7 @@ extern "C" fn in_extern_fn_return() -> impl Debug {
 
 type InTypeAlias<R> = impl Debug;
 //~^ ERROR `impl Trait` in type aliases is unstable
+//~| ERROR unconstrained opaque type
 
 type InReturnInTypeAlias<R> = fn() -> impl Debug;
 //~^ ERROR `impl Trait` is not allowed in `fn` pointer