summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-25826.rs
blob: c340c30a113b5108a4e719b8d67f20afb9cb6533 (plain)
1
2
3
4
5
6
fn id<T>(t: T) -> T { t }
fn main() {
    const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
    //~^ ERROR can't compare
    println!("{}", A);
}