Normalize function signature in function casting check
This commit is contained in:
parent
0c835b0cca
commit
68b38c3bd9
2 changed files with 18 additions and 1 deletions
14
src/test/ui/issues/issue-54094.rs
Normal file
14
src/test/ui/issues/issue-54094.rs
Normal 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 _;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue