2019-09-14 20:17:11 +00:00
|
|
|
// run-pass
|
|
|
|
|
2016-08-24 11:07:43 +00:00
|
|
|
#![feature(concat_idents)]
|
2011-08-03 18:46:32 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2016-05-19 05:22:42 +00:00
|
|
|
struct Foo;
|
|
|
|
let _: concat_idents!(F, oo) = Foo; // Test that `concat_idents!` can be used in type positions
|
|
|
|
|
2014-05-25 10:10:11 +00:00
|
|
|
let asdf_fdsa = "<.<".to_string();
|
2019-09-14 20:17:11 +00:00
|
|
|
// concat_idents should have call-site hygiene.
|
2015-12-11 07:59:11 +00:00
|
|
|
assert!(concat_idents!(asd, f_f, dsa) == "<.<".to_string());
|
2011-08-03 18:46:32 +00:00
|
|
|
|
2015-06-07 18:00:38 +00:00
|
|
|
assert_eq!(stringify!(use_mention_distinction), "use_mention_distinction");
|
2011-08-13 07:10:18 +00:00
|
|
|
}
|