summaryrefslogtreecommitdiffstats
path: root/third_party/rust/inherent/tests/ui/default-with-body.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/inherent/tests/ui/default-with-body.stderr')
-rw-r--r--third_party/rust/inherent/tests/ui/default-with-body.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/rust/inherent/tests/ui/default-with-body.stderr b/third_party/rust/inherent/tests/ui/default-with-body.stderr
new file mode 100644
index 0000000000..82dee8dd14
--- /dev/null
+++ b/third_party/rust/inherent/tests/ui/default-with-body.stderr
@@ -0,0 +1,8 @@
+error: Default method can't have a body
+ --> $DIR/default-with-body.rs:12:21
+ |
+12 | fn a(&self) {
+ | _____________________^
+13 | | println!("Default with a body >:-P");
+14 | | }
+ | |_________^