]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0283.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[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
9 error[E0283]: type annotations needed
10   --> $DIR/E0283.rs:35:24
11    |
12 LL |     let bar = foo_impl.into() * 1u32;
13    |               ---------^^^^--
14    |               |        |
15    |               |        cannot infer type for type parameter `T` declared on the trait `Into`
16    |               this method call resolves to `T`
17    |               help: use the fully qualified path for the potential candidate: `<Impl as Into<u32>>::into(foo_impl)`
18    |
19 note: multiple `impl`s satisfying `Impl: Into<_>` found
20   --> $DIR/E0283.rs:17:1
21    |
22 LL | impl Into<u32> for Impl {
23    | ^^^^^^^^^^^^^^^^^^^^^^^
24    = note: and another `impl` found in the `core` crate:
25            - impl<T, U> Into<U> for T
26              where U: From<T>;
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0283`.