summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/bad-projection.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/proc-macro/bad-projection.stderr')
-rw-r--r--tests/ui/proc-macro/bad-projection.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/bad-projection.stderr b/tests/ui/proc-macro/bad-projection.stderr
new file mode 100644
index 000000000..8a8246376
--- /dev/null
+++ b/tests/ui/proc-macro/bad-projection.stderr
@@ -0,0 +1,9 @@
+error[E0277]: the trait bound `(): Project` is not satisfied
+ --> $DIR/bad-projection.rs:14:17
+ |
+LL | pub fn uwu() -> <() as Project>::Assoc {}
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Project` is not implemented for `()`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.