From 2582e36da3bb1ac57fe0472f6d424da40520dc51 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Thu, 24 Nov 2022 21:15:46 -0500 Subject: Don't suggest associated function call for associated const. --- src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/test/ui') diff --git a/src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr b/src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr index 04e0511d788..0d9543e0b8f 100644 --- a/src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr +++ b/src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr @@ -2,13 +2,7 @@ error[E0599]: no method named `MAX` found for type `u32` in the current scope --> $DIR/dont-suggest-ufcs-for-const.rs:2:11 | LL | 1_u32.MAX(); - | ------^^^-- - | | | - | | this is an associated function, not a method - | help: use associated function syntax instead: `u32::MAX()` - | - = note: found the following associated functions; to be used as methods, functions must have a `self` parameter - = note: the candidate is defined in an impl for the type `u32` + | ^^^ method not found in `u32` error: aborting due to previous error -- cgit 1.4.1-3-g733a5