]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0283.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0283.stderr
1 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
2 --> $DIR/E0283.rs:30:21
3 |
4 LL | fn create() -> u32;
5 | ------------------- `Generator::create` defined here
6 ...
7 LL | let cont: u32 = Generator::create();
8 | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait
9 |
10 help: use a fully-qualified path to a specific available implementation (2 found)
11 |
12 LL | let cont: u32 = <Impl as Generator>::create();
13 | ++++++++ +
14
15 error[E0283]: type annotations needed
16 --> $DIR/E0283.rs:35:24
17 |
18 LL | let bar = foo_impl.into() * 1u32;
19 | ^^^^
20 |
21 note: multiple `impl`s satisfying `Impl: Into<_>` found
22 --> $DIR/E0283.rs:17:1
23 |
24 LL | impl Into<u32> for Impl {
25 | ^^^^^^^^^^^^^^^^^^^^^^^
26 = note: and another `impl` found in the `core` crate:
27 - impl<T, U> Into<U> for T
28 where U: From<T>;
29 help: try using a fully qualified path to specify the expected types
30 |
31 LL | let bar = <Impl as Into<T>>::into(foo_impl) * 1u32;
32 | ++++++++++++++++++++++++ ~
33
34 error: aborting due to 2 previous errors
35
36 Some errors have detailed explanations: E0283, E0790.
37 For more information about an error, try `rustc --explain E0283`.