summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/issue-47814.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-consts/issue-47814.stderr')
-rw-r--r--tests/ui/associated-consts/issue-47814.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/associated-consts/issue-47814.stderr b/tests/ui/associated-consts/issue-47814.stderr
new file mode 100644
index 000000000..2e4ddb811
--- /dev/null
+++ b/tests/ui/associated-consts/issue-47814.stderr
@@ -0,0 +1,14 @@
+error: generic `Self` types are currently not permitted in anonymous constants
+ --> $DIR/issue-47814.rs:8:32
+ |
+LL | pub fn to_buffer() -> [u8; Self::LENGTH] {
+ | ^^^^
+ |
+note: not a concrete type
+ --> $DIR/issue-47814.rs:5:10
+ |
+LL | impl<'a> ArpIPv4<'a> {
+ | ^^^^^^^^^^^
+
+error: aborting due to previous error
+