]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0283.stderr
Added docs to internal_macro const
[rust.git] / src / test / ui / error-codes / E0283.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/E0283.rs:30:21
3    |
4 LL |     let cont: u32 = Generator::create();
5    |                     ^^^^^^^^^^^^^^^^^ cannot infer type
6    |
7    = note: cannot satisfy `_: Generator`
8 note: required by `Generator::create`
9   --> $DIR/E0283.rs:2:5
10    |
11 LL |     fn create() -> u32;
12    |     ^^^^^^^^^^^^^^^^^^^
13
14 error[E0283]: type annotations needed
15   --> $DIR/E0283.rs:35:24
16    |
17 LL |     let bar = foo_impl.into() * 1u32;
18    |               ---------^^^^--
19    |               |        |
20    |               |        cannot infer type for type parameter `T` declared on the trait `Into`
21    |               this method call resolves to `T`
22    |               help: use the fully qualified path for the potential candidate: `<Impl as Into<u32>>::into(foo_impl)`
23    |
24    = note: cannot satisfy `Impl: Into<_>`
25
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0283`.