diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-42312.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-42312.rs b/src/test/ui/issues/issue-42312.rs new file mode 100644 index 000000000..426efcbf9 --- /dev/null +++ b/src/test/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() { } |