about summary refs log tree commit diff
path: root/tests/ui/implicit-method-bind.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/implicit-method-bind.stderr')
-rw-r--r--tests/ui/implicit-method-bind.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/implicit-method-bind.stderr b/tests/ui/implicit-method-bind.stderr
new file mode 100644
index 00000000000..e0a96852720
--- /dev/null
+++ b/tests/ui/implicit-method-bind.stderr
@@ -0,0 +1,14 @@
+error[E0615]: attempted to take value of method `abs` on type `i32`
+  --> $DIR/implicit-method-bind.rs:2:20
+   |
+LL |     let _f = 10i32.abs;
+   |                    ^^^ method, not a field
+   |
+help: use parentheses to call the method
+   |
+LL |     let _f = 10i32.abs();
+   |                       ++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0615`.