Skip to content

Commit d3ae2eb

Browse files
committed
Rust unstable book: basic desc and example for concat_idents.
1 parent e58e3d0 commit d3ae2eb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/doc/unstable-book/src/concat-idents.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,17 @@ The tracking issue for this feature is: [#29599]
66

77
------------------------
88

9+
The `concat_idents` feature adds a macro for concatenating multiple identifiers
10+
into one identifier.
911

12+
## Examples
1013

14+
```rust
15+
#![feature(concat_idents)]
16+
17+
fn main() {
18+
fn foobar() -> u32 { 23 }
19+
let f = concat_idents!(foo, bar);
20+
assert_eq!(f(), 23);
21+
}
22+
```

0 commit comments

Comments
 (0)