diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-04 11:38:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-04 11:38:50 +0100 |
| commit | 785b47d92a0519e4bcc1a9dd2c0c28067e082ff1 (patch) | |
| tree | c3abc8e9fb92006c704befa9b63c8dfe048871a9 /src/test/ui | |
| parent | fd02567705326884ddb94535d2ab230a9595dc2a (diff) | |
| parent | 7054287b0d52cd1be5dc50e6a11fa7dcace8029f (diff) | |
| download | rust-785b47d92a0519e4bcc1a9dd2c0c28067e082ff1.tar.gz rust-785b47d92a0519e4bcc1a9dd2c0c28067e082ff1.zip | |
Rollup merge of #104856 - luqmana:associated-const-bad-suggestion, r=compiler-errors
Don't suggest associated function call for associated const. Fixes #104801. r? `@compiler-errors`
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr | 8 |
1 files changed, 1 insertions, 7 deletions
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 |
