]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/suggest-fully-qualified-closure.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / traits / suggest-fully-qualified-closure.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/suggest-fully-qualified-closure.rs:23:7
3    |
4 LL |     q.lol(||());
5    |       ^^^
6    |
7 help: try using a fully qualified path to specify the expected types
8    |
9 LL |     <Qqq as MyTrait<T>>::lol::<[closure@]>(&q, ||());
10    |     +++ ~
11
12 error[E0283]: type annotations needed
13   --> $DIR/suggest-fully-qualified-closure.rs:23:7
14    |
15 LL |     q.lol(||());
16    |       ^^^
17    |
18 note: multiple `impl`s satisfying `Qqq: MyTrait<_>` found
19   --> $DIR/suggest-fully-qualified-closure.rs:14:1
20    |
21 LL | impl MyTrait<u32> for Qqq{
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^
23 ...
24 LL | impl MyTrait<u64> for Qqq{
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: try using a fully qualified path to specify the expected types
27    |
28 LL |     <Qqq as MyTrait<T>>::lol::<[closure@]>(&q, ||());
29    |     +++ ~
30
31 error: aborting due to 2 previous errors
32
33 Some errors have detailed explanations: E0282, E0283.
34 For more information about an error, try `rustc --explain E0282`.