From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/methods/method-missing-call.stderr | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/ui/methods/method-missing-call.stderr (limited to 'src/test/ui/methods/method-missing-call.stderr') diff --git a/src/test/ui/methods/method-missing-call.stderr b/src/test/ui/methods/method-missing-call.stderr new file mode 100644 index 000000000..040a65d16 --- /dev/null +++ b/src/test/ui/methods/method-missing-call.stderr @@ -0,0 +1,25 @@ +error[E0615]: attempted to take value of method `get_x` on type `Point` + --> $DIR/method-missing-call.rs:22:26 + | +LL | .get_x; + | ^^^^^ method, not a field + | +help: use parentheses to call the method + | +LL | .get_x(); + | ++ + +error[E0615]: attempted to take value of method `filter_map` on type `Filter, [closure@$DIR/method-missing-call.rs:27:20: 27:23]>, [closure@$DIR/method-missing-call.rs:28:23: 28:28]>` + --> $DIR/method-missing-call.rs:29:16 + | +LL | .filter_map; + | ^^^^^^^^^^ method, not a field + | +help: use parentheses to call the method + | +LL | .filter_map(_); + | +++ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0615`. -- cgit v1.2.3