]> git.lizzy.rs Git - rust.git/blob - tests/ui/syntax-extension-minor.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / 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 }