blob: ec3e637acab78858adcf9085f727ef6e9e1ec62c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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, ':');
}
|