summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17336.rs
blob: 97782ff9f0ef5c6433b73e7aa292758c554a5120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}