about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-09 03:36:12 +0000
committerbors <bors@rust-lang.org>2017-05-09 03:36:12 +0000
commitbedd7da3d28d69520f33ac6a585df87ef1373a26 (patch)
tree78b0129c76c87b9ef98d7b7f83a77083a073720a /src/test/ui
parentf1140a33176a5fb2e91e26ea3ae42a834dd9bfdf (diff)
parentf21209f442ef29f2d77464d2ba37dcec154fbfe2 (diff)
Auto merge of #41846 - frewsxcv:rollup, r=frewsxcv
Rollup of 8 pull requests

- Successful merges: #41293, #41520, #41827, #41828, #41833, #41836, #41838, #41842
- Failed merges:
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/macros/trace-macro.rs15
-rw-r--r--src/test/ui/macros/trace-macro.stderr9
2 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/macros/trace-macro.rs b/src/test/ui/macros/trace-macro.rs
new file mode 100644
index 00000000000..34f674ae016
--- /dev/null
+++ b/src/test/ui/macros/trace-macro.rs
@@ -0,0 +1,15 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// compile-flags: -Z trace-macros
+
+fn main() {
+    println!("Hello, World!");
+}
diff --git a/src/test/ui/macros/trace-macro.stderr b/src/test/ui/macros/trace-macro.stderr
new file mode 100644
index 00000000000..09117a4ca74
--- /dev/null
+++ b/src/test/ui/macros/trace-macro.stderr
@@ -0,0 +1,9 @@
+note: trace_macro
+  --> $DIR/trace-macro.rs:14:5
+   |
+14 |     println!("Hello, World!");
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = note: expands to `println! { "Hello, World!" }`
+   = note: expands to `print! { concat ! ( "Hello, World!" , "/n" ) }`
+