Created
April 20, 2019 04:36
-
-
Save rust-play/9c29877ca56f3b491ff5c95537bb2c2e to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 _; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment