e3fe0ee97b
Furthermore, don't suggest calling the method if it is part of a place expression, as this is invalid syntax.
10 lines
372 B
Plaintext
10 lines
372 B
Plaintext
error[E0615]: attempted to take value of method `abs` on type `i32`
|
|
--> $DIR/implicit-method-bind.rs:2:20
|
|
|
|
|
LL | let _f = 10i32.abs; //~ ERROR attempted to take value of method
|
|
| ^^^ help: use parentheses to call the method: `abs()`
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0615`.
|