diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-56237.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-56237.rs b/src/test/ui/issues/issue-56237.rs new file mode 100644 index 000000000..534b85ace --- /dev/null +++ b/src/test/ui/issues/issue-56237.rs @@ -0,0 +1,13 @@ +// run-pass + +use std::ops::Deref; + +fn foo<P>(_value: <P as Deref>::Target) +where + P: Deref, + <P as Deref>::Target: Sized, +{} + +fn main() { + foo::<Box<u32>>(2); +} |