about summary refs log tree commit diff
path: root/tests/ui/issues/issue-17336.rs
blob: 8ce2caaeaa57b112459e6ad0293db500e58e6a0a (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() {}