about summary refs log tree commit diff
path: root/tests/ui/issues/issue-42312.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-42312.rs')
-rw-r--r--tests/ui/issues/issue-42312.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-42312.rs b/tests/ui/issues/issue-42312.rs
new file mode 100644
index 00000000000..426efcbf9b1
--- /dev/null
+++ b/tests/ui/issues/issue-42312.rs
@@ -0,0 +1,11 @@
+use std::ops::Deref;
+
+pub trait Foo {
+    fn baz(_: Self::Target) where Self: Deref {}
+    //~^ ERROR the size for values of type
+}
+
+pub fn f(_: dyn ToString) {}
+//~^ ERROR the size for values of type
+
+fn main() { }