diff options
Diffstat (limited to 'tests/ui/type-alias-impl-trait/bound_reduction2.stderr')
-rw-r--r-- | tests/ui/type-alias-impl-trait/bound_reduction2.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/type-alias-impl-trait/bound_reduction2.stderr b/tests/ui/type-alias-impl-trait/bound_reduction2.stderr new file mode 100644 index 000000000..3c259bd9e --- /dev/null +++ b/tests/ui/type-alias-impl-trait/bound_reduction2.stderr @@ -0,0 +1,12 @@ +error[E0792]: expected generic type parameter, found `<T as TraitWithAssoc>::Assoc` + --> $DIR/bound_reduction2.rs:16:5 + | +LL | type Foo<V> = impl Trait<V>; + | - this generic parameter must be used with a generic type parameter +... +LL | () + | ^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0792`. |