about summary refs log tree commit diff
path: root/tests/ui/traits/suggest-fully-qualified-closure.stderr
blob: a2c1115e673a36b4d77f1b7bebe3e34cc97b271d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0283]: type annotations needed
  --> $DIR/suggest-fully-qualified-closure.rs:21:7
   |
LL |     q.lol(||());
   |       ^^^
   |
note: multiple `impl`s satisfying `Qqq: MyTrait<_>` found
  --> $DIR/suggest-fully-qualified-closure.rs:12:1
   |
LL | impl MyTrait<u32> for Qqq{
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | impl MyTrait<u64> for Qqq{
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
help: try using a fully qualified path to specify the expected types
   |
LL |     <Qqq as MyTrait<T>>::lol::<_>(&q, ||());
   |     +++++++++++++++++++++++++++++++ ~

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0283`.