]> git.lizzy.rs Git - rust.git/blob - src/test/ui/syntax-extension-minor.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / syntax-extension-minor.rs
1 // run-pass
2
3 #![feature(concat_idents)]
4
5 pub fn main() {
6     struct Foo;
7     let _: concat_idents!(F, oo) = Foo; // Test that `concat_idents!` can be used in type positions
8
9     let asdf_fdsa = "<.<".to_string();
10     // concat_idents should have call-site hygiene.
11     assert!(concat_idents!(asd, f_f, dsa) == "<.<".to_string());
12
13     assert_eq!(stringify!(use_mention_distinction), "use_mention_distinction");
14 }