]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / suggestions / suggest-assoc-fn-call-with-turbofish.stderr
CommitLineData
dfeec247 1error[E0599]: no method named `default_hello` found for struct `GenericAssocMethod<i32>` in the current scope
e74abb32
XL
2 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:9:7
3 |
4LL | struct GenericAssocMethod<T>(T);
064997fb 5 | ---------------------------- method `default_hello` not found for this struct
e74abb32
XL
6...
7LL | x.default_hello();
8 | --^^^^^^^^^^^^^
9 | | |
10 | | this is an associated function, not a method
11 | help: use associated function syntax instead: `GenericAssocMethod::<i32>::default_hello`
12 |
13 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
ba9703b0 14note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
e74abb32
XL
15 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:4:5
16 |
17LL | fn default_hello() {}
18 | ^^^^^^^^^^^^^^^^^^
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0599`.