Rust unstable book: basic desc and example for concat_idents.
This commit is contained in:
parent
e58e3d0bc0
commit
d3ae2eb58e
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue