summaryrefslogtreecommitdiffstats
path: root/src/test/ui/implicit-method-bind.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/implicit-method-bind.stderr')
-rw-r--r--src/test/ui/implicit-method-bind.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/implicit-method-bind.stderr b/src/test/ui/implicit-method-bind.stderr
new file mode 100644
index 000000000..e0a968527
--- /dev/null
+++ b/src/test/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`.