Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- concat!(Foo, Bar)
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: expected a literal
- --> src/main.rs:6:17
- |
- 6 | concat!(Foo, Bar)
- | ^^^ ^^^
- |
- = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()`
- error: aborting due to previous error
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement