We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b017025 commit 4652032Copy full SHA for 4652032
library/proc_macro/tests/test.rs
@@ -1,6 +1,6 @@
1
#![feature(proc_macro_span)]
2
3
-use proc_macro::LineColumn;
+use proc_macro::{LineColumn, Punct};
4
5
#[test]
6
fn test_line_column_ord() {
@@ -10,3 +10,11 @@ fn test_line_column_ord() {
10
assert!(line0_column0 < line0_column1);
11
assert!(line0_column1 < line1_column0);
12
}
13
+
14
+#[test]
15
+fn test_punct_eq() {
16
+ // Good enough if it typechecks, since proc_macro::Punct can't exist in a test.
17
+ fn _check(punct: Punct) {
18
+ let _ = punct == ':';
19
+ }
20
+}
0 commit comments