summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/assembly/runaway-impl-candidate-selection.stderr
blob: 414deb47727e32133eb3d0d72fe29384b3bd4686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0283]: type annotations needed
  --> $DIR/runaway-impl-candidate-selection.rs:13:22
   |
LL |     println!("{:?}", iter::<_>());
   |                      ^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `iter`
   |
   = note: cannot satisfy `_: Iterator`
note: required by a bound in `iter`
  --> $DIR/runaway-impl-candidate-selection.rs:8:12
   |
LL | fn iter<T: Iterator>() -> <T as Iterator>::Item {
   |            ^^^^^^^^ required by this bound in `iter`

error: aborting due to previous error

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