Rust unstable book: basic desc and example for concat_idents.

This commit is contained in:
Corey Farwell 2017-03-12 01:12:29 -05:00
parent e58e3d0bc0
commit d3ae2eb58e

View file

@ -6,5 +6,17 @@ The tracking issue for this feature is: [#29599]
------------------------
The `concat_idents` feature adds a macro for concatenating multiple identifiers
into one identifier.
## Examples
```rust
#![feature(concat_idents)]
fn main() {
fn foobar() -> u32 { 23 }
let f = concat_idents!(foo, bar);
assert_eq!(f(), 23);
}
```