blob: 9713c36dde265a11ec56fc51d69eaaa70bfd5a8a [file] [edit]
//! Regression test for https://github.com/rust-lang/rust/issues/17336
//@ build-pass
#![allow(unused_must_use)]
#![allow(ambiguous_wide_pointer_comparisons)]
#[allow(dead_code)]
fn check(a: &str) {
let x = a as *const str;
x == x;
}
fn main() {}