summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-params-in-different-spaces-3.rs
blob: ac7b0c11fe9fc6e7b39e07e06030321260330497 (plain)
1
2
3
4
5
6
7
trait Tr : Sized {
    fn test<X>(u: X) -> Self {
        u   //~ ERROR mismatched types
    }
}

fn main() {}