summary refs log tree commit diff
path: root/src/test/run-pass/issue-56237.rs
blob: 87e10e83612d6ce36a9bf9d3dcf3be9a7d538d4e (plain)
1
2
3
4
5
6
7
8
9
10
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);
}