diff options
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr')
-rw-r--r-- | src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr b/src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr new file mode 100644 index 000000000..62db019ed --- /dev/null +++ b/src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr @@ -0,0 +1,14 @@ +error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied + --> $DIR/nested-tait-inference.rs:12:13 + | +LL | fn foo() -> impl Foo<FooX> { + | ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()` +... +LL | () + | -- return type was inferred to be `()` here + | + = help: the trait `Foo<()>` is implemented for `()` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |