1 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
2 --> $DIR/E0283.rs:30:21
4 LL | fn create() -> u32;
5 | ------------------- `Generator::create` defined here
7 LL | let cont: u32 = Generator::create();
8 | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait
10 help: use a fully-qualified path to a specific available implementation (2 found)
12 LL | let cont: u32 = <Impl as Generator>::create();
15 error[E0283]: type annotations needed
16 --> $DIR/E0283.rs:35:24
18 LL | let bar = foo_impl.into() * 1u32;
21 note: multiple `impl`s satisfying `Impl: Into<_>` found
22 --> $DIR/E0283.rs:17:1
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
29 help: try using a fully qualified path to specify the expected types
31 LL | let bar = <Impl as Into<T>>::into(foo_impl) * 1u32;
32 | ++++++++++++++++++++++++ ~
34 error: aborting due to 2 previous errors
36 Some errors have detailed explanations: E0283, E0790.
37 For more information about an error, try `rustc --explain E0283`.