summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-56835.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-56835.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-56835.rs b/src/test/ui/issues/issue-56835.rs
new file mode 100644
index 000000000..7132d15ee
--- /dev/null
+++ b/src/test/ui/issues/issue-56835.rs
@@ -0,0 +1,9 @@
+pub struct Foo {}
+
+impl Foo {
+ fn bar(Self(foo): Self) {}
+ //~^ ERROR the `Self` constructor can only be used with tuple or unit structs
+ //~^^ ERROR expected tuple struct or tuple variant, found self constructor `Self` [E0164]
+}
+
+fn main() {}