mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 22:17:38 +00:00
13 lines
276 B
Rust
13 lines
276 B
Rust
use proc_macro::{Punct, Spacing};
|
|
|
|
pub fn test() {
|
|
test_punct_eq();
|
|
}
|
|
|
|
fn test_punct_eq() {
|
|
let colon_alone = Punct::new(':', Spacing::Alone);
|
|
assert_eq!(colon_alone, ':');
|
|
let colon_joint = Punct::new(':', Spacing::Joint);
|
|
assert_eq!(colon_joint, ':');
|
|
}
|