Normalize function signature in function casting check

This commit is contained in:
Donough Liu 2020-04-10 18:14:55 +08:00
parent 0c835b0cca
commit 68b38c3bd9
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,14 @@
// check-pass
trait Zoo {
type X;
}
impl Zoo for u16 {
type X = usize;
}
fn foo(abc: <u16 as Zoo>::X) {}
fn main() {
let x: *const u8 = foo as _;
}