summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-25826.rs
blob: f5ed5aeedc39c238cae98a9d3bb53bc2c196ab99 (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 pointers cannot
    println!("{}", A);
}