]> git.lizzy.rs Git - rust.git/blob - src/test/ui/syntax-extension-minor.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[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 }