summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr')
-rw-r--r--tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr b/tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr
new file mode 100644
index 000000000..66ee142cc
--- /dev/null
+++ b/tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.stderr
@@ -0,0 +1,12 @@
+error[E0046]: not all trait items implemented, missing: `foo`
+ --> $DIR/dont-project-to-rpitit-with-no-value.rs:8:1
+ |
+LL | fn foo(&self) -> impl Sized;
+ | ---------------------------- `foo` from trait
+...
+LL | impl MyTrait for i32 {
+ | ^^^^^^^^^^^^^^^^^^^^ missing `foo` in implementation
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0046`.