rust/tests/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof/offsetof-alignof-sizeof-pure-can-be-used-as-idents.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
281 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
2018-06-01 11:01:16 -05:00
// 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() {}