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 12eddc0 commit 4c0bd28Copy full SHA for 4c0bd28
tests/test.rs
@@ -328,10 +328,17 @@ fn literal_span() {
328
#[cfg(span_locations)]
329
#[test]
330
fn source_text() {
331
- let input = " 𓀕 ";
332
- let tokens = input.parse::<proc_macro2::TokenStream>().unwrap();
333
- let ident = tokens.into_iter().next().unwrap();
+ let input = " 𓀕 c ";
+ let mut tokens = input
+ .parse::<proc_macro2::TokenStream>()
334
+ .unwrap()
335
+ .into_iter();
336
+
337
+ let ident = tokens.next().unwrap();
338
assert_eq!("𓀕", ident.span().source_text().unwrap());
339
340
341
+ assert_eq!("c", ident.span().source_text().unwrap()); // FIXME
342
}
343
344
0 commit comments