]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54094.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-54094.rs
1 // check-pass
2 trait Zoo {
3     type X;
4 }
5
6 impl Zoo for u16 {
7     type X = usize;
8 }
9
10 fn foo(abc: <u16 as Zoo>::X) {}
11
12 fn main() {
13     let x: *const u8 = foo as _;
14 }