Normalize type before deferred sizedness checking.
This commit is contained in:
parent
691a7f8e2b
commit
9d35e57907
2 changed files with 12 additions and 0 deletions
11
src/test/run-pass/issue-56237.rs
Normal file
11
src/test/run-pass/issue-56237.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue