summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs
blob: 6d7bca4da24df5f7a21007c0e91e0005e18eb1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// Test that removed keywords are allowed as identifiers.
fn main () {
    let offsetof = ();
    let alignof = ();
    let sizeof = ();
    let pure = ();
}

fn offsetof() {}
fn alignof() {}
fn sizeof() {}
fn pure() {}