summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-54696.rs
blob: 15355d30db6a561bc5d0512a3609c3bcc2acb203 (plain)
1
2
3
4
5
6
7
8
// run-pass

fn main() {
    // We shouldn't promote this
    let _ = &(main as fn() == main as fn());
    // Also check nested case
    let _ = &(&(main as fn()) == &(main as fn()));
}