]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-25826.rs
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / issue-25826.rs
1 fn id<T>(t: T) -> T { t }
2 fn main() {
3     const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
4     //~^ ERROR can't compare
5     println!("{}", A);
6 }